31 lines
907 B
C#
31 lines
907 B
C#
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 = 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!;
|
|
}
|