30 lines
748 B
C#
30 lines
748 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Newtonsoft.Json;
|
|
using Pf2eModel.Model.Common;
|
|
using Pf2eModel.Model.Enum;
|
|
|
|
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; }
|
|
|
|
[JsonIgnore]
|
|
public virtual Background Background { get; set; } = null!;
|
|
|
|
public virtual Training Training { get; set; } = null!;
|
|
}
|