19 lines
743 B
C#
19 lines
743 B
C#
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|
|||
|
|
namespace BMA.EHR.MetaData.Service.Models
|
|||
|
|
{
|
|||
|
|
public class Royal : EntityBase
|
|||
|
|
{
|
|||
|
|
[Required, MaxLength(100), 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;
|
|||
|
|
}
|
|||
|
|
}
|