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 = "Vw_Sys_User",ApiInput = typeof(ApiSys_UserInput),ApiOutput = typeof(ApiSys_UserOutput))]
[Table("Vw_Sys_User")]
public class Sys_User:BaseEntity
{
///
///帐号
///
[Display(Name ="帐号")]
[MaxLength(6)]
[Column(TypeName="varchar(6)")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public string UserName { get; set; }
///
///
///
[Key]
[Display(Name ="User_Id")]
//[MaxLength(36)]
[Column(TypeName= "uniqueidentifier")]
[Required(AllowEmptyStrings=false)]
public Guid User_Id { get; set; }
///
///头像
///
[Display(Name ="头像")]
[MaxLength(100)]
[Column(TypeName="varchar(100)")]
//[Editable(true)]
public string HeadImageUrl { get; set; }
///
///角色
///
[Display(Name ="角色")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
[Editable(true)]
public string Role_Id { get; set; }
///
///
///
[Display(Name ="RoleName")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
//[Editable(true)]
public string RoleName { get; set; }
///
///Token
///
[Display(Name ="Token")]
[MaxLength(500)]
[Column(TypeName="varchar(500)")]
[Editable(true)]
public string Token { get; set; }
///
///真实姓名
///
[Display(Name ="真实姓名")]
[MaxLength(150)]
[Column(TypeName="varchar(150)")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public string UserTrueName { get; set; }
///
///密码
///
[Display(Name ="密码")]
[MaxLength(150)]
[JsonIgnore]
[Column(TypeName="varchar(150)")]
//[Required(AllowEmptyStrings=false)]
public string UserPwd { get; set; }
///
///手机号
///
[Display(Name ="手机号")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
public string PhoneNo { get; set; }
///
///
///
[Display(Name ="Tel")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
public string Tel { get; set; }
///
///是否可用
///
[Display(Name ="是否可用")]
[Column(TypeName="int")]
//[Editable(true)]
//[Required(AllowEmptyStrings=false)]
public int Enable { get; set; }
///
///修改时间
///
[Display(Name ="修改时间")]
[Column(TypeName="datetime")]
public DateTime? ModifyDate { get; set; }
///
///审核人
///
[Display(Name ="审核人")]
[MaxLength(10)]
[Column(TypeName="varchar(10)")]
//[Required(AllowEmptyStrings=false)]
public string Auditor { get; set; }
///
///最后登陆时间
///
[Display(Name ="最后登陆时间")]
[Column(TypeName="datetime")]
public DateTime? LastLoginDate { get; set; }
///
///最后密码修改时间
///
[Display(Name ="最后密码修改时间")]
[Column(TypeName= "datetime")]
public DateTime? LastModifyPwdDate { get; set; }
///
///地址
///
[Display(Name ="地址")]
[MaxLength(150)]
[Column(TypeName="varchar(150)")]
[Editable(true)]
public string Address { get; set; }
///
///
///
[Display(Name ="CompanyName")]
[MaxLength(150)]
[Column(TypeName="varchar(150)")]
public string CompanyName { get; set; }
///
///
///
[Display(Name = "CompanyCodeName")]
[MaxLength(150)]
[Column(TypeName = "varchar(150)")]
public string CompanyCodeName { get; set; }
///
///
///
[Display(Name ="CompanyId")]
[MaxLength(36)]
[Column(TypeName="varchar(36)")]
public string CompanyId { get; set; }
///
///
///
[Display(Name ="Modifier")]
[MaxLength(150)]
[Column(TypeName="varchar(150)")]
public string Modifier { get; set; }
///
///
///
[Display(Name ="Mobile")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
public string Mobile { get; set; }
///
///
///
[Display(Name ="IsRegregisterPhone")]
[Column(TypeName="int")]
//[Required(AllowEmptyStrings=false)]
public int IsRegregisterPhone { get; set; }
///
///
///
[Display(Name ="Gender")]
[Column(TypeName="int")]
//[Required(AllowEmptyStrings=false)]
public int Gender { get; set; }
///
///
///
[Display(Name ="Email")]
[MaxLength(50)]
[Column(TypeName="varchar(50)")]
public string Email { get; set; }
///
///
///
[Display(Name ="Dept_Id")]
[MaxLength(36)]
[Column(TypeName="varchar(36)")]
public string Dept_Id { get; set; }
///
///
///
[Display(Name ="DeptName")]
[MaxLength(100)]
[Column(TypeName="varchar(100)")]
public string DeptName { get; set; }
///
///
///
[Display(Name ="Createor")]
[MaxLength(10)]
[Column(TypeName="varchar(10)")]
//[Required(AllowEmptyStrings=false)]
public string Createor { get; set; }
///
///
///
[Display(Name ="CreateID")]
[MaxLength(36)]
[Column(TypeName="varchar(36)")]
public string CreateID { get; set; }
///
///
///
[Display(Name ="CreateDate")]
[Column(TypeName="datetime")]
public DateTime? CreateDate { get; set; }
///
///
///
[Display(Name ="AuditStatus")]
[Column(TypeName="int")]
//[Required(AllowEmptyStrings=false)]
public int AuditStatus { get; set; }
///
///
///
[Display(Name ="AuditDate")]
[Column(TypeName="datetime")]
public DateTime? AuditDate { get; set; }
///
///
///
[Display(Name ="Remark")]
[MaxLength(200)]
[Column(TypeName="varchar(200)")]
public string Remark { get; set; }
///
///
///
[Display(Name ="Apptype")]
[Column(TypeName="int")]
//[Required(AllowEmptyStrings=false)]
public int Apptype { get; set; }
}
}