summaryrefslogtreecommitdiff
path: root/Principal.cs
blob: d736bf260e46ae1be6f44c28418945692cf7c0b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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; }
}