Глобальный рефакторинг пространств имён
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pf2e.Database.Model.Structure.DeityRelation;
|
||||
|
||||
/// <summary>
|
||||
/// Связь божества с оружием.
|
||||
/// </summary>
|
||||
public class DeityWeapon
|
||||
{
|
||||
/// <summary>
|
||||
/// Идентификатор связи божества с оружием.
|
||||
/// </summary>
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column(Order = 1)]
|
||||
[Comment("Идентификатор")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Идентификатор божества, к которому относится оружие.
|
||||
/// </summary>
|
||||
[Column(Order = 2)]
|
||||
[Comment("Идентификатор божества")]
|
||||
public int DeityId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Название оружия, связанного с божеством. Будет изменено на идентификатор оружия в будущем, когда будет реализована система оружия.
|
||||
/// </summary>
|
||||
[Column(Order = 3)]
|
||||
[MaxLength(Pf2eDbContext.NameLength)]
|
||||
[Comment("Название оружия")]
|
||||
public string Weapon { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Божество, к которому относится оружие.
|
||||
/// </summary>
|
||||
public virtual Deity Deity { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user