Капитальный рефактор модели

This commit is contained in:
2025-04-16 13:01:54 +04:00
parent bf6d600c4b
commit d095001caf
83 changed files with 1440 additions and 1623 deletions
+12 -5
View File
@@ -1,4 +1,4 @@
using Pf2eDataScrapper.Model.Common;
using Pf2eDataScrapper.Model.Base;
using Pf2eDataScrapper.Model.Enum;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -7,19 +7,26 @@ namespace Pf2eDataScrapper.Model.Structure;
public partial class Action : IEntity
{
[Key]
[Column("id", Order = 1)]
[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 ActionType Type { get; set; }
[Column(Order = 3)]
public ActionCategory Category { get; set; }
[Column(Order = 4)]
public int? Actions { get; set; }
[Column(Order = 5)]
public bool? DeathNote { get; set; }
[Column(Order = 6)]
public string? Extra { get; set; }
public Entity Entity { get; set; } = null!;
}