using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core.DB.Models;
using WIDESEAWCS_Core.Tenants;
namespace WIDESEAWCS_Model.Models
{
///
/// 用户信息表
///
//[SugarTable("SysUserInfo")]
[SugarTable("Sys_User", "用户表")] //('数据库表名','数据库表备注')
public class Sys_User : BaseEntity
{
///
/// 用户ID
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "用户ID")]
public int User_Id { get; set; }
///
///帐号
///
[SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "帐号")]
public string UserName { get; set; }
///
/// 角色ID
///
[SugarColumn(IsNullable = false, ColumnDescription = "角色ID")]
public int Role_Id { get; set; }
///
/// 角色名称
///
[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "角色名称")]
public string RoleName { get; set; }
///
/// 电话
///
[SugarColumn(Length = 11, IsNullable = true, ColumnDescription = "电话")]
public string PhoneNo { get; set; }
///
/// 备注
///
[SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "备注")]
public string Remark { get; set; }
///
/// 密码
///
[SugarColumn(Length = 200, IsNullable = false, ColumnDescription = "密码")]
public string UserPwd { get; set; }
///
/// 真实姓名
///
[SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "真实姓名")]
public string UserTrueName { get; set; }
///
/// 部门
///
[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "部门")]
public string DeptName { get; set; }
///
/// 部门ID
///
[SugarColumn(IsNullable = true, ColumnDescription = "部门ID")]
public int? Dept_Id { get; set; }
///
/// 邮箱
///
[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "邮箱")]
public string Email { get; set; }
///
/// 是否可用
///
[SugarColumn(IsNullable = false, ColumnDescription = "是否可用")]
public byte Enable { get; set; }
///
/// 性别
///
[SugarColumn(IsNullable = true, ColumnDescription = "性别")]
public int? Gender { get; set; }
///
/// 头像
///
[SugarColumn(Length = 500, IsNullable = true, ColumnDescription = "头像")]
public string HeadImageUrl { get; set; }
///
/// 最后密码修改时间
///
[SugarColumn(IsNullable = true, IsOnlyIgnoreInsert = true, ColumnDescription = "最后密码修改时间")]
public DateTime? LastModifyPwdDate { get; set; }
///
/// 地址
///
[SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "地址")]
public string Address { get; set; }
///
/// 审核时间
///
[SugarColumn(IsNullable = true, ColumnDescription = "审核时间")]
public DateTime? AuditDate { get; set; }
///
/// 审核状态
///
[SugarColumn(IsNullable = true, ColumnDescription = "审核状态")]
public int? AuditStatus { get; set; }
///
/// 审核人
///
[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "审核人")]
public string Auditor { get; set; }
///
/// 令牌
///
[SugarColumn(Length = 500, IsNullable = true, ColumnDescription = "令牌")]
public string Token { get; set; }
///
/// 租户ID
///
[SugarColumn(IsNullable = false, ColumnDescription = "租户ID",DefaultValue = "0")]
public long TenantId { get; set; }
}
}