add database migration to limit UID and Hash max lengths

This commit is contained in:
Stanley Dimant 2022-07-12 11:39:23 +02:00
parent b8950ca886
commit e70f564162
6 changed files with 325 additions and 11 deletions

View file

@ -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; }
}

View file

@ -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; }