using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace HyperBooru; [AclType(typeof(ObjectPermissions))] [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(); [ForeignKey("AclId")] public Acl? Acl { get; set; } public SecurityIdentifier Owner { get; set; } = WellKnownSid.WorldSid; }