Начало работы по окончательносму оформлению моделей

This commit is contained in:
2025-04-15 16:26:35 +04:00
parent b67c964c80
commit 4fec054ac6
41 changed files with 473 additions and 68 deletions
+29
View File
@@ -0,0 +1,29 @@
using Pf2eDataScrapper.Model.Enum;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Pf2eDataScrapper.Model.Common;
[Table("trait")]
public partial class Trait
{
[Key]
[Column("id", Order = 1)]
public int Id { get; set; }
[Column("name", Order = 2)]
[Required]
public string Name { get; set; } = null!;
[Column("type", Order = 3)]
public TraitType Type { get; set; }
[Column("slug", Order = 4)]
[Required]
public string Slug { get; set; } = null!;
[Column("description", Order = 5)]
public string Description { get; set; } = null!;
public virtual ICollection<Entity> Entities { get; set; } = [];
}