summaryrefslogtreecommitdiff
path: root/Principal.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-18 19:34:14 +1000
committerJake Mannens <jake@asger.xyz>2023-09-18 19:34:14 +1000
commitcb8179b5e5a8d5253d063ed607205f52643410fa (patch)
treeea5ab297ba2876ba4db236ae700b03f5aba0459b /Principal.cs
parent604ef537e0fabfbcc3abf9d7473b22f08dc549a6 (diff)
Initial commit
Diffstat (limited to 'Principal.cs')
-rw-r--r--Principal.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Principal.cs b/Principal.cs
new file mode 100644
index 0000000..d736bf2
--- /dev/null
+++ b/Principal.cs
@@ -0,0 +1,16 @@
+using Microsoft.EntityFrameworkCore;
+
+namespace HyperBooru;
+
+[Index(nameof(Name))]
+public class HBPrincipal : HBObject {
+ public string Name { get; set; }
+}
+
+public class User : HBPrincipal {
+ public string PasswordHash { get; set; }
+}
+
+public class Group : HBPrincipal {
+ public List<HBPrincipal> Members { get; set; }
+} \ No newline at end of file