diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-28 03:14:35 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-28 03:14:35 +1000 |
| commit | bedcb6b176130fc2c6bd4657c8af4d407b64c970 (patch) | |
| tree | 974a14bb03913e3a8083a633d9de61742c86e0a1 /HBObject.cs | |
| parent | bc82b2dc2f7405c0fd4d179830412ea8209137b1 (diff) | |
Updated DB schema and configured ACLs to use SIDs
Diffstat (limited to 'HBObject.cs')
| -rw-r--r-- | HBObject.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/HBObject.cs b/HBObject.cs index ba1c226..2962adf 100644 --- a/HBObject.cs +++ b/HBObject.cs @@ -8,8 +8,10 @@ namespace HyperBooru; public class HBObject { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int ObjectId { get; set; } - public Guid Guid { get; set; } = Guid.NewGuid(); - public virtual List<Tag> Tags { get; set; } = new(); - public Acl? Acl { get; set; } + public int ObjectId { get; set; } + public Guid Guid { get; set; } = Guid.NewGuid(); + public virtual List<Tag> Tags { get; set; } = new(); + public Acl? Acl { get; set; } + public SecurityIdentifier Owner { get; set; } = + new SecurityIdentifier(WellKnownSidType.WorldSid); }
\ No newline at end of file |
