GreenField: Switch to Blob for API Keys

This commit is contained in:
Kukks
2020-04-02 08:59:20 +02:00
parent d60b00e8cd
commit c6d75de3d7
11 changed files with 101 additions and 26 deletions

View File

@@ -22,13 +22,19 @@ namespace BTCPayServer.Data
[MaxLength(50)] public string UserId { get; set; }
public APIKeyType Type { get; set; } = APIKeyType.Legacy;
public string Permissions { get; set; }
public byte[] Blob { get; set; }
public StoreData StoreData { get; set; }
public ApplicationUser User { get; set; }
public string Label { get; set; }
}
public class APIKeyBlob
{
public string[] Permissions { get; set; }
}
public enum APIKeyType
{
Legacy,