30 lines
769 B
C#
30 lines
769 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Pf2eModel.Model.Base;
|
|
using Pf2eModel.Model.Common.I18n;
|
|
using Pf2eModel.Model.Enum;
|
|
|
|
namespace Pf2eModel.Model.Structure;
|
|
|
|
[EntityOfType(EntityType.Subclass)]
|
|
public class Subclass : IEntity
|
|
{
|
|
[Key]
|
|
[Column(Order = 1)]
|
|
public int Id { get; set; }
|
|
|
|
public Entity Entity { get; set; } = null!;
|
|
|
|
[Column(Order = 2)]
|
|
public int GroupId { get; set; }
|
|
|
|
public SubclassGroup Group { get; set; } = null!;
|
|
|
|
[Column(Order = 3)]
|
|
public LocaleString Additional { get; set; } = [];
|
|
|
|
[Column(Order = 4)]
|
|
// ReSharper disable once EntityFramework.ModelValidation.UnlimitedStringLength
|
|
public string Extra { get; set; } = "{}";
|
|
}
|