using Mirle.Component.Database.Model.WES;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model
{
///
/// 使用者與功能基本資料類別
///
[Table("MAP_USER_AND_FUNC")]
public class MapUserAndFuncDto : CommonDto
{
///
/// 使用者帳號
///
[Column(Name = "USER_ID")]
[Required, Key, StringLength(30), JsonPropertyName("USER_ID"), JsonPropertyOrder(1)]
public string USER_ID { get; set; }
///
/// 功能編號
///
[Column(Name = "FUNC_ID")]
[Required, Key, JsonPropertyName("FUNC_ID"), JsonPropertyOrder(2)]
public int FUNC_ID { get; set; }
///
///使用者權限
///
///
/// 0 = View
/// 1 = Edit
/// 2 = View/Edit
///
[Column(Name = "PERMISSION")]
[Required, JsonPropertyName("PERMISSION"), JsonPropertyOrder(3)]
public int PERMISSION { get; set; }
}
}