using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.WES { /// /// 功能基本資料類別 /// [Table("CFG_FUNC")] public class CfgFuncDto : CommonDto { /// /// 功能編號 /// [Column(Name = "FUNC_ID")] [Required, Key, JsonPropertyName("FUNC_ID"), JsonPropertyOrder(1)] public int FUNC_ID { get; set; } /// /// 功能名稱 /// [Column(Name = "FUNC_NAME")] [Required, StringLength(50), JsonPropertyName("FUNC_NAME"), JsonPropertyOrder(2)] public string FUNC_NAME { get; set; } /// /// 功能網址 /// [Column(Name = "FUNC_URL")] [Required, StringLength(64), JsonPropertyName("FUNC_URL"), JsonPropertyOrder(3)] public string FUNC_URL { get; set; } /// /// 父功能類別 /// [Column(Name = "PARENT_FUNC_ID")] [Required, JsonPropertyName("PARENT_FUNC_ID"), JsonPropertyOrder(4)] public int PARENT_FUNC_ID { get; set; } } }