using BMA.EHR.Domain.Models.Base; using BMA.EHR.Domain.Models.Documents; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace BMA.EHR.Domain.Models.Commands.Core { public class CommandDocument : EntityBase { [Required, Comment("ประเภทเอกสาร")] public string Category { get; set; } = string.Empty; [Required, Comment("อ้างอิงรหัสเอกสาร")] public Document Document { get; set; } [Required, Comment("อ้างอิงคำสั่ง")] public virtual Command Command { get; set; } } }