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 Tags { get; set; } = new(); public Acl? Acl { get; set; } }