using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.WES { /// /// 路線基本資料類別 /// [Table("CFG_ROUTE")] public class CfgRouteDto : CommonDto { /// /// 產品類別 /// [Column(Name = "PRODUCT_TYPE")] [Required, Key, StringLength(10), JsonPropertyName("PRODUCT_TYPE"), JsonPropertyOrder(1)] public string PRODUCT_TYPE { get; set; } /// /// 路線類別 /// [Column(Name = "ROUTE_TYPE")] [Required, Key, StringLength(10), JsonPropertyName("ROUTE_TYPE"), JsonPropertyOrder(2)] public string ROUTE_TYPE { get; set; } /// /// 起始位置 /// [Column(Name = "SOURCE_POSITION")] [Required, Key, StringLength(9), JsonPropertyName("SOURCE_POSITION"), JsonPropertyOrder(3)] public string SOURCE_POSITION { get; set; } /// /// 目的位置 /// [Column(Name = "DESC_POSITION")] [Required, Key, StringLength(9), JsonPropertyName("DESC_POSITION"), JsonPropertyOrder(4)] public string DESC_POSITION { get; set; } /// /// 軟體編號 /// [Column(Name = "SOFTWARE_ID")] [Required, StringLength(7), JsonPropertyName("SOFTWARE_ID"), JsonPropertyOrder(5)] public string SOFTWARE_ID { get; set; } /// /// 預估時間 (Sesc) /// [Column(Name = "ESTIMATED_TIME")] [JsonPropertyName("ESTIMATED_TIME"), JsonPropertyOrder(6)] public int ESTIMATED_TIME { get; set; } } }