mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-29 09:49:17 +01:00
add database migration to limit UID and Hash max lengths
This commit is contained in:
parent
b8950ca886
commit
e70f564162
6 changed files with 325 additions and 11 deletions
|
|
@ -7,10 +7,10 @@ namespace MareSynchronosServer.Models
|
|||
public class FileCache
|
||||
{
|
||||
[Key]
|
||||
[MaxLength(40)]
|
||||
public string Hash { get; set; }
|
||||
public User Uploader { get; set; }
|
||||
public bool Uploaded { get; set; }
|
||||
public DateTime LastAccessTime { get; set; }
|
||||
[Timestamp]
|
||||
public byte[] Timestamp { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ namespace MareSynchronosServer.Models
|
|||
public class User
|
||||
{
|
||||
[Key]
|
||||
[MaxLength(10)]
|
||||
public string UID { get; set; }
|
||||
public string SecretKey { get; set; }
|
||||
public string CharacterIdentification { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue