mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-29 07:39:17 +01:00
add EF core db migrations, add banned + forbidden uploads db entries, adjust authentication to include characternamehash to check for bans, prepare for message sending from client to other clients
This commit is contained in:
parent
1ac5e2655e
commit
906f719879
20 changed files with 1026 additions and 61 deletions
10
MareSynchronosServer/MareSynchronosServer/Models/Banned.cs
Normal file
10
MareSynchronosServer/MareSynchronosServer/Models/Banned.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MareSynchronosServer.Models
|
||||
{
|
||||
public class Banned
|
||||
{
|
||||
[Key]
|
||||
public string CharacterIdentification { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@ namespace MareSynchronosServer.Models
|
|||
public User User { get; set; }
|
||||
public User OtherUser { get; set; }
|
||||
public bool IsPaused { get; set; }
|
||||
public bool AllowReceivingMessages { get; set; } = false;
|
||||
[Timestamp]
|
||||
public byte[] Timestamp { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MareSynchronosServer.Models
|
||||
{
|
||||
public class ForbiddenUploadEntry
|
||||
{
|
||||
[Key]
|
||||
public string Hash { get; set; }
|
||||
public string ForbiddenBy { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -11,5 +11,7 @@ namespace MareSynchronosServer.Models
|
|||
public string CharacterIdentification { get; set; }
|
||||
[Timestamp]
|
||||
public byte[] Timestamp { get; set; }
|
||||
|
||||
public bool IsAdmin { get; set; } = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue