using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIStandardWebApi.Entity.EnumEntity;
namespace UIStandardWebApi.Entity
{
///
/// 用户信息
///
[SugarTable("Sys_User")]
public class Sys_User : Sys_BaseModel
{
///
/// 用户ID
///
[SugarColumn(ColumnName = "UserId", IsIdentity = true, IsPrimaryKey = true)]
public int UserId { get; set; }
///
/// 姓名
///
public string? Name { set; get; }
///
/// 登录密码
///
public string? Password { set; get; }
///
/// 用户类型--UserTypeEnum
/// 1:管理员 系统默认生成
/// 2:普通用户 添加的或者注册的用户都为普通用户
///
[SugarColumn(IsNullable = true)]
public int UserType { get; set; } = (int)UserTypeEnum.GeneralUser;
///
/// 用户状态 0正常 1冻结 2删除
///
public int Status { set; get; }
///
/// 电话号码
///
[SugarColumn(IsNullable = true)]
public string? Phone { set; get; }
///
/// 手机号码
///
[SugarColumn(IsNullable = true)]
public string? Mobile { set; get; }
///
/// 地址
///
[SugarColumn(IsNullable = true)]
public string? Address { set; get; }
///
/// 邮箱
///
[SugarColumn(IsNullable = true)]
public string? Email { set; get; }
///
/// QQ
///
[SugarColumn(IsNullable = true)]
public string? QQ { set; get; }
///
/// 微信
///
[SugarColumn(IsNullable = true)]
public string? WeChat { set; get; }
///
/// 性别
///
[SugarColumn(IsNullable = true)]
public int Sex { set; get; }
///
/// 用户头像
///
[SugarColumn(IsNullable = true)]
public string? Imageurl { set; get; }
///
/// 最后一次登录时间
///
public DateTime LastLoginTime { set; get; }
}
}