using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Pf2eModel.Model.Base.Targets; [PrimaryKey(nameof(EntityId), nameof(TargetId))] public partial class EntityExternal { [Column(Order = 0)] public int EntityId { get; set; } [Column(Order = 1)] public int TargetId { get; set; } [Column(Order = 2)] [MaxLength(255)] [Comment("Часть URL до объекта. Для источников Foundry - полный UUID объекта")] public string Suffix { get; set; } = ""; [Column(Order = 3)] [MaxLength(32)] [Comment("Контроль версии объекта")] public string Md5 { get; set; } = null!; [Newtonsoft.Json.JsonIgnore] public virtual Entity Entity { get; set; } = null!; public virtual ExternalTarget Target { get; set; } = null!; }