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