using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace Pf2eModel.Model.Base.Targets; [PrimaryKey(nameof(EntityId), nameof(TargetId))] public class EntityExternal { [Column(Order = 1)] public int EntityId { get; set; } [Column(Order = 2)] public int TargetId { get; set; } /* [Column(Order = 3)] [MaxLength(255)] public string ExternalId { get; set; } = ""; */ [Column(Order = 4)] [MaxLength(255)] [Comment("Часть URL до объекта. Для источников Foundry - полный UUID объекта")] public string Suffix { get; set; } = ""; [Column(Order = 5)] [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!; }