23 lines
1.1 KiB
C#
23 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.MetaData.Service.Models
|
|
{
|
|
public class Insignia: EntityBase
|
|
{
|
|
[Required, MaxLength(50), Column(Order = 1), Comment("ชื่อเครื่องราชย์")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required, MaxLength(10), Column(Order = 2), Comment("ชื่อย่อเครื่องราชย์")]
|
|
public string ShortName { get; set; } = string.Empty;
|
|
|
|
[Column(Order = 3), Comment("สถานะการใช้งาน")]
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
[Column(Order = 4), Comment("ลำดับชั้นของเครื่องราชย์ เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น")]
|
|
public int Level { get; set; } = 0;
|
|
|
|
public virtual InsigniaType? InsigniaType { get; set; }
|
|
}
|
|
}
|