Refactoring Data entities to fit one standard convention

This commit is contained in:
rockstardev
2020-12-28 14:57:21 -06:00
parent 91cb9129ab
commit c9dc60be7b
28 changed files with 173 additions and 387 deletions

View File

@@ -6,15 +6,13 @@ namespace BTCPayServer.Data
public class APIKeyData
{
[MaxLength(50)]
public string Id
{
get;
set;
}
public string Id { get; set; }
[MaxLength(50)] public string StoreId { get; set; }
[MaxLength(50)]
public string StoreId { get; set; }
[MaxLength(50)] public string UserId { get; set; }
[MaxLength(50)]
public string UserId { get; set; }
public APIKeyType Type { get; set; } = APIKeyType.Legacy;
@@ -23,6 +21,7 @@ namespace BTCPayServer.Data
public ApplicationUser User { get; set; }
public string Label { get; set; }
internal static void OnModelCreating(ModelBuilder builder)
{
builder.Entity<APIKeyData>()