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