using System; using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.WES { /// /// 基本資料共用類別 /// public class CommonDto { /// /// 建立人員 /// [Column(Name = "CREATE_USER")] [Required, StringLength(30), JsonPropertyName("CREATE_USER"), JsonPropertyOrder(101)] public string CREATE_USER { get; set; } /// /// 建立時間 /// [Column(Name = "CREATE_TIME")] [Required, JsonPropertyName("CREATE_TIME"), JsonPropertyOrder(102)] public DateTime CREATE_TIME { get; set; } = DateTime.Now; /// /// 更新人員 /// [Column(Name = "UPDATE_USER")] [Required, StringLength(30), JsonPropertyName("UPDATE_USER"), JsonPropertyOrder(104)] public string UPDATE_USER { get; set; } /// /// 更新時間 /// [Column(Name = "UPDATE_TIME")] [Required, JsonPropertyName("UPDATE_TIME"), JsonPropertyOrder(105)] public DateTime UPDATE_TIME { get; set; } = DateTime.Now; /// /// 資料狀態 /// /// /// 0 = Insert
/// 1 = Update
/// 2 = Disable
/// 3 = Removed
///
[Column(Name = "STATUS")] [Required, JsonPropertyName("STATUS"), JsonPropertyOrder(106)] public int STATUS { get; set; } = 0; } }