summaryrefslogtreecommitdiff
path: root/HBObject.cs
blob: 2962adf03c95a392d60d768fb38abd03f8664df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace HyperBooru;

[Index(nameof(Guid))]
public class HBObject {
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public         int                ObjectId { get; set; }
    public         Guid               Guid     { get; set; } = Guid.NewGuid();
    public virtual List<Tag>          Tags     { get; set; } = new();
    public         Acl?               Acl      { get; set; }
    public         SecurityIdentifier Owner    { get; set; } =
        new SecurityIdentifier(WellKnownSidType.WorldSid);
}