41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Pf2eModel.Model.Base;
|
|
using Pf2eModel.Model.Enum;
|
|
using Pf2eModel.Model.Structure.BackgroundRelation;
|
|
|
|
namespace Pf2eModel.Model.Structure;
|
|
|
|
/// <summary>
|
|
/// Предыстория.
|
|
/// </summary>
|
|
[EntityOfType(EntityType.Background)]
|
|
public class Background : IEntity
|
|
{
|
|
/// <inheritdoc/>
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
[Column(Order = 1)]
|
|
[Comment("Идентификатор")]
|
|
public int Id { get; set; }
|
|
|
|
/// <inheritdoc/>
|
|
public Entity Entity { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Аттрибуты предыстории.
|
|
/// </summary>
|
|
public ICollection<BackgroundBoost> BackgroundBoosts { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Способности предыстории.
|
|
/// </summary>
|
|
public ICollection<BackgroundItem> BackgroundItems { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Навыки предыстории.
|
|
/// </summary>
|
|
public ICollection<BackgroundTraining> BackgroundSkills { get; set; } = [];
|
|
}
|