38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using Pf2eModel.Model.Base;
|
|
using Pf2eModel.Model.Enum;
|
|
using Pf2eModel.Model.Structure.AncestryRelation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Pf2eModel.Model.Structure;
|
|
|
|
[EntityOfType(EntityType.Ancestry)]
|
|
public partial class Ancestry : IEntity
|
|
{
|
|
[System.ComponentModel.DataAnnotations.Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
[Column(Order = 1)]
|
|
public int Id { get; set; }
|
|
|
|
public Entity Entity { get; set; } = null!;
|
|
|
|
[Column(Order = 2)]
|
|
public Size[] Size { get; set; } = [];
|
|
|
|
[Column(Order = 3)]
|
|
public int Hp { get; set; }
|
|
|
|
[Column(Order = 4)]
|
|
public int Speed { get; set; }
|
|
|
|
[Column(Order = 5)]
|
|
public AncestryVision Vision { get; set; } = AncestryVision.Normal;
|
|
|
|
public virtual ICollection<AncestryBoost> AncestryBoosts { get; set; } = [];
|
|
|
|
public virtual ICollection<AncestryItem> AncestryItems { get; set; } = [];
|
|
|
|
public virtual ICollection<AncestryLanguage> AncestryLanguages { get; set; } = [];
|
|
|
|
public virtual ICollection<Heritage> Heritages { get; set; } = [];
|
|
}
|