summaryrefslogtreecommitdiff
path: root/Principal.cs
blob: 553fbecb52a835b086287c2f76746725b7486090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using Microsoft.EntityFrameworkCore;
using System.Security.Principal;

namespace HyperBooru;

[Index(nameof(Name))]
public class HBPrincipal : HBObject {
    public string             Name     { get; set; }
    public SecurityIdentifier Sid      { get; set; }
    public List<Group>        MemberOf { get; set; }
}

public class User : HBPrincipal {
    public string PasswordHash { get; set; }
}

public class Group : HBPrincipal {}