From cb8179b5e5a8d5253d063ed607205f52643410fa Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 18 Sep 2023 19:34:14 +1000 Subject: Initial commit --- Principal.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Principal.cs (limited to 'Principal.cs') 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 Members { get; set; } +} \ No newline at end of file -- cgit v1.3