Вынесение модели в отдельный проект

This commit is contained in:
2025-04-18 12:20:15 +04:00
parent df7f01938f
commit e1ec15d03e
96 changed files with 974 additions and 7683 deletions
@@ -0,0 +1,21 @@
using Pf2eModel.Model.Enum;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Pf2eModel.Model.Structure.BackgroundRelation;
public partial class BackgroundBoost
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Column(Order = 1)]
public int Id { get; set; }
[Column(Order = 2)]
public int BackgroundId { get; set; }
[Column(Order = 3)]
public AttributeValues Attribute { get; set; }
public virtual Background Background { get; set; } = null!;
}
@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore;
using Pf2eModel.Model.Base;
using System.ComponentModel.DataAnnotations.Schema;
namespace Pf2eModel.Model.Structure.BackgroundRelation;
[PrimaryKey(nameof(BackgroundId), nameof(EntityId))]
public partial class BackgroundItem
{
[Column(Order = 1)]
public int BackgroundId { get; set; }
[Column(Order = 2)]
public int EntityId { get; set; }
[Column(Order = 3)]
public int? Level { get; set; }
public virtual Background Background { get; set; } = null!;
public virtual Entity Entity { get; set; } = null!;
}
@@ -0,0 +1,27 @@
using Pf2eModel.Model.Common;
using Pf2eModel.Model.Enum;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Pf2eModel.Model.Structure.BackgroundRelation;
public partial class BackgroundTraining
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Column(Order = 1)]
public int Id { get; set; }
[Column(Order = 2)]
public int BackgroundId { get; set; }
[Column(Order = 3)]
public int TrainingId { get; set; }
[Column(Order = 4)]
public TrainingStage Level { get; set; }
public virtual Background Background { get; set; } = null!;
public virtual Training Training { get; set; } = null!;
}