Процессор божеств

This commit is contained in:
2025-09-14 15:01:38 +04:00
parent 66f3adc5f9
commit 4aa107c3d9
28 changed files with 475 additions and 169 deletions
@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Pf2eModel.Model.Enum;
@@ -7,20 +8,28 @@ namespace Pf2eModel.Model.Structure.DeityRelation;
/// <summary>
/// Элемент отношения божества и атрибута.
/// </summary>
[PrimaryKey(nameof(DeityId), nameof(Attribute))]
public class DeityAttribute
{
/// <summary>
/// Идентификатор.
/// </summary>
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column(Order = 1)]
[Comment("Идентификатор")]
public int Id { get; set; }
/// <summary>
/// Идентификатор божества.
/// </summary>
[Column(Order = 1)]
[Column(Order = 2)]
[Comment("Идентификатор божества")]
public int DeityId { get; set; }
/// <summary>
/// Атрибут божества.
/// </summary>
[Column(Order = 2)]
[Column(Order = 3)]
[Comment("Атрибут божества")]
public AttributeValues Attribute { get; set; }