You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
1.6 KiB

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