using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using BMA.EHR.Domain.Models.Base; using Microsoft.EntityFrameworkCore; namespace BMA.EHR.Domain.Models.HR { public class ProfileDiscipline : EntityBase { // [Key] // public int Id { get; set; } // [Required] // public int Order { get; set; } [Comment("ระดับความผิด")] public string? Level { get; set; } [Column(TypeName = "text")] [Comment("รายละเอียด")] public string? Detail { get; set; } [Comment("เอกสารอ้างอิง (เลขที่คำสั่ง)")] public string? RefCommandNo { get; set; } [Comment("เอกสารอ้างอิง (ลงวันที่)")] public DateTime? RefCommandDate { get; set; } [Comment("วัน เดือน ปี")] public DateTime? Date { get; set; } // public DateTime? Date { get; set; } // public string? Status { get; set; } // public string? Level { get; set; } // public string? RefNo { get; set; } // public DateTime? RefDate { get; set; } public virtual List ProfileDisciplineHistorys { get; set; } = new List(); public virtual Profile? Profile { get; set; } } }