using BMA.EHR.Domain.Models.Base; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace BMA.EHR.Domain.Models.MetaData { public class Position : EntityBase { [Required, MaxLength(300), Column(Order = 1), Comment("ชื่อตำแหน่ง")] public string Name { get; set; } = string.Empty; [MaxLength(300), Column(Order = 2), Comment("ด้าน/สาขา")] public virtual PositionPathSide? PathSide { get; set; } [MaxLength(300), Column(Order = 3), Comment("ชื่อตำแหน่งทางการบริหาร")] public string ExecutiveName { get; set; } = string.Empty; [MaxLength(300), Column(Order = 4), Comment("ด้านทางการบริหาร")] public virtual PositionExecutiveSide? ExecutiveSide { get; set; } [Column(Order = 5), Comment("สายงาน")] public virtual PositionPath? PositionPath { get; set; } [Column(Order = 6), Comment("ตำแหน่งประเภท")] public virtual PositionType? PositionType { get; set; } [Column(Order = 7), Comment("ระดับ")] public virtual PositionLevel? PositionLevel { get; set; } [Column(Order = 8), Comment("ตำแหน่งสำหรับข้าราชการหรือลูกจ้าง officer/employee")] public string PositionCategory { get; set; } = string.Empty; [Column(Order = 9), Comment("สถานะการใช้งาน")] public bool IsActive { get; set; } = true; } }