summaryrefslogtreecommitdiff
path: root/LocalPrincipal.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-29 19:00:16 +1000
committerJake Mannens <jake@asger.xyz>2023-09-29 19:00:16 +1000
commitf9d34b1d61c3877c64828e23a0090f49c7418928 (patch)
tree15451995acb2d74c6903cf0384f6cac616f5138d /LocalPrincipal.cs
parente0cf80a5d0e2d6898b611892a331aa917b9370d9 (diff)
Updated DB schema
Diffstat (limited to 'LocalPrincipal.cs')
-rw-r--r--LocalPrincipal.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/LocalPrincipal.cs b/LocalPrincipal.cs
index 36428ef..35ff310 100644
--- a/LocalPrincipal.cs
+++ b/LocalPrincipal.cs
@@ -1,13 +1,16 @@
using Microsoft.EntityFrameworkCore;
+using System.ComponentModel.DataAnnotations.Schema;
namespace HyperBooru;
[Index(nameof(Name))]
[Index(nameof(Sid))]
public class LocalPrincipal : IPrincipal {
- public string Name { get; set; }
- public SecurityIdentifier Sid { get; set; }
- public List<LocalGroup> MemberOf { get; set; }
+ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int LocalPrincipalId { get; set; }
+ public string Name { get; set; }
+ public SecurityIdentifier Sid { get; set; }
+ public List<LocalGroup> MemberOf { get; set; }
}
public class LocalUser : LocalPrincipal, IUser {