using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.WES
{
///
/// 使用者基本資料類別
///
[Table("CFG_USER")]
public class CfgUserDto : CommonDto
{
///
/// 使用者帳號
///
[Column(Name = "USER_ID")]
[Required, Key, StringLength(30), JsonPropertyName("USER_ID"), JsonPropertyOrder(1)]
public string USER_ID { get; set; }
///
/// 使用者名稱
///
[Column(Name = "USER_NAME")]
[StringLength(50), JsonPropertyName("USER_NAME"), JsonPropertyOrder(2)]
public string USER_NAME { get; set; }
///
/// 使用者密碼
///
[Column(Name = "USER_PASSWORD")]
[Required, StringLength(40), JsonPropertyName("USER_PASSWORD"), JsonPropertyOrder(3)]
public string USER_PASSWORD { get; set; }
///
/// 使用者部門代碼
///
[Column(Name = "USER_DEPT")]
[StringLength(10), JsonPropertyName("USER_DEPT"), JsonPropertyOrder(4)]
public string USER_DEPT { get; set; }
///
/// 使用者郵件
///
[Column(Name = "USER_EMAIL")]
[StringLength(64), JsonPropertyName("USER_EMAIL"), JsonPropertyOrder(5)]
public string USER_EMAIL { get; set; }
}
}