summaryrefslogtreecommitdiff
path: root/Principal.cs
diff options
context:
space:
mode:
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