using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Pf2eModel.Model.Base; using Pf2eModel.Model.Enum; namespace Pf2eModel.Model.Structure; [EntityOfType(EntityType.Trait)] public partial class Trait : IEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] [Column(Order = 1)] public int Id { get; set; } public Entity Entity { get; set; } = null!; [Column(Order = 2)] public TraitType Type { get; set; } [Newtonsoft.Json.JsonIgnore] public virtual ICollection Entities { get; set; } = []; }