using Newtonsoft.Json;
/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化,请在代码生器重新生成此Model
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;
namespace VOL.Entity.DomainModels
{
[Entity(TableCnName = "角色管理",TableName = "Sys_Role_Core")]
[Table("Sys_Role_Core")]
public class Sys_Role:BaseEntity
{
///
///角色ID
///
[Key]
[Display(Name = "角色ID")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Required(AllowEmptyStrings = false)]
public string Role_Id { get; set; }
///
///父级ID
///
[Display(Name ="父级ID")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
[Editable(true)]
public string ParentId { get; set; }
///
///角色名称
///
[Display(Name ="角色名称")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string RoleName { get; set; }
///
///部门ID
///
[Display(Name ="部门ID")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
public string Dept_Id { get; set; }
///
///部门名称
///
[Display(Name ="部门名称")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string DeptName { get; set; }
///
///限制于本公司
///
[Display(Name ="限制于本公司")]
[Column(TypeName="bit")]
[Editable(true)]
public bool? LimitCompanyRange { get; set; }
///
///受仓库的子表 OP_WMS_STOREHOUSE_USERLIMIT 中的人员列表限制
///
[Display(Name = "受仓库人员权限限制")]
[Column(TypeName = "bit")]
[Editable(true)]
public bool? LimitBySTORAGE { get; set; }
///
///是否启用
///
[Display(Name ="是否启用")]
[Column(TypeName="tinyint")]
[Editable(true)]
public byte? Enable { get; set; }
///
///排序
///
[Display(Name ="排序")]
[Column(TypeName="int")]
public int? OrderNo { get; set; }
///
///创建人
///
[Display(Name ="创建人")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
[Editable(true)]
public string Creator { get; set; }
///
///创建时间
///
[Display(Name ="创建时间")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? CreateDate { get; set; }
///
///修改人
///
[Display(Name ="修改人")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
[Editable(true)]
public string Modifier { get; set; }
///
///修改时间
///
[Display(Name ="修改时间")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? ModifyDate { get; set; }
///
///
///
[Display(Name ="DeleteBy")]
[MaxLength(50)]
[JsonIgnore]
[Column(TypeName="varchar(50)")]
public string DeleteBy { get; set; }
}
}