using System;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.Warroom.Config
{
///
/// 基本資料通用類別
///
public class CommonDto
{
///
/// 建立人員
///
[Column(Name = "create_user"), JsonPropertyName("create_user"), Required]
public string CreateUser { get; set; } = "Admin";
///
/// 建立時間
///
[Column(Name = "create_time"), JsonPropertyName("create_time")]
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 更新人員
///
[Column(Name = "update_user"), JsonPropertyName("update_user")]
public string UpdateUser { get; set; } = "Admin";
///
/// 更新時間
///
[Column(Name = "update_time"), JsonPropertyName("update_time")]
public DateTime UpdateTime { get; set; } = DateTime.Now;
///
/// 資料狀態
///
///
/// 0 = Insert
/// 1 = Update
/// 2 = Disable
/// 3 = Remove
///
[Column(Name = "status"), JsonPropertyName("status")]
public int Status { get; set; } = 0;
}
}