diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-18 19:34:14 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-18 19:34:14 +1000 |
| commit | cb8179b5e5a8d5253d063ed607205f52643410fa (patch) | |
| tree | ea5ab297ba2876ba4db236ae700b03f5aba0459b /Principal.cs | |
| parent | 604ef537e0fabfbcc3abf9d7473b22f08dc549a6 (diff) | |
Initial commit
Diffstat (limited to 'Principal.cs')
| -rw-r--r-- | Principal.cs | 16 |
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 |
