Files
Pf2eDataScrapper/Pf2eModel/Model/Structure/Deity.cs
T

42 lines
1.2 KiB
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Pf2eModel.Model.Base;
using Pf2eModel.Model.Common;
using Pf2eModel.Model.Enum;
using Pf2eModel.Model.Structure.DeityRelation;
namespace Pf2eModel.Model.Structure;
[EntityOfType(EntityType.Deity)]
public class Deity : IEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Column(Order = 1)]
public int Id { get; set; }
public Entity Entity { get; set; } = null!;
[Column(Order = 2)]
public DeityCategory Category { get; set; }
[Column(Order = 3)]
public DeityFonts Fonts { get; set; }
[Column(Order = 4)]
public DeitySanctification Sanctification { get; set; }
[Column(Order = 5)]
public bool SanctificationMust { get; set; }
public ICollection<DeityAttribute> DeityAttributes { get; set; } = new List<DeityAttribute>();
public ICollection<DeityDomain> DeityDomains { get; set; } = new List<DeityDomain>();
public ICollection<DeitySpell> DeitySpells { get; set; } = new List<DeitySpell>();
public ICollection<DeityWeapon> DeityWeapons { get; set; } = new List<DeityWeapon>();
public ICollection<Training> Skills { get; set; } = new List<Training>();
}