Капитальный рефактор модели
This commit is contained in:
@@ -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!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user