Files
Pf2eDataScrapper/Pf2eDataScrapper/Model/Common/EntityAlias.cs
T

26 lines
644 B
C#

using Pf2eDataScrapper.Model.Enum;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Pf2eDataScrapper.Model.Common;
[Table("entity_alias")]
public partial class EntityAlias
{
[Key]
[Column("id", Order = 1)]
public int Id { get; set; }
[Column("entity_id", Order = 2)]
[ForeignKey("Entity")]
public int EntityId { get; set; }
[Column("type", Order = 3)]
public AliasType Type { get; set; } = AliasType.Other;
[Column("alias", Order = 4)]
public string Alias { get; set; } = null!;
public virtual Entity Entity { get; set; } = null!;
}