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