dengjunjie
2025-07-09 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/System/Sys_User.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,145 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
using WIDESEA_Core.Tenants;
namespace WIDESEA_Model.Models
{
    /// <summary>
    /// ç”¨æˆ·ä¿¡æ¯è¡¨
    /// </summary>
    //[SugarTable("SysUserInfo")]
    [SugarTable("Sys_User", "用户表")] //('数据库表名','数据库表备注')
    public class Sys_User : BaseEntity
    {
        /// <summary>
        /// ç”¨æˆ·ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "用户ID")]
        public int User_Id { get; set; }
        /// <summary>
        ///帐号
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "帐号")]
        public string UserName { get; set; }
        /// <summary>
        /// è§’色ID
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "角色ID")]
        public int Role_Id { get; set; }
        /// <summary>
        /// è§’色名称
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "角色名称")]
        public string RoleName { get; set; }
        /// <summary>
        /// ç”µè¯
        /// </summary>
        [SugarColumn(Length = 11, IsNullable = true, ColumnDescription = "电话")]
        public string PhoneNo { get; set; }
        /// <summary>
        /// å¤‡æ³¨
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// å¯†ç 
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = false, ColumnDescription = "密码")]
        public string UserPwd { get; set; }
        /// <summary>
        /// çœŸå®žå§“名
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "真实姓名")]
        public string UserTrueName { get; set; }
        /// <summary>
        /// éƒ¨é—¨
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "部门")]
        public string DeptName { get; set; }
        /// <summary>
        /// éƒ¨é—¨ID
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "部门ID")]
        public int? Dept_Id { get; set; }
        /// <summary>
        /// é‚®ç®±
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "邮箱")]
        public string Email { get; set; }
        /// <summary>
        /// æ˜¯å¦å¯ç”¨
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "是否可用")]
        public byte Enable { get; set; }
        /// <summary>
        /// æ€§åˆ«
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "性别")]
        public int? Gender { get; set; }
        /// <summary>
        /// å¤´åƒ
        /// </summary>
        [SugarColumn(Length = 500, IsNullable = true, ColumnDescription = "头像")]
        public string HeadImageUrl { get; set; }
        /// <summary>
        /// æœ€åŽå¯†ç ä¿®æ”¹æ—¶é—´
        /// </summary>
        [SugarColumn(IsNullable = true, IsOnlyIgnoreInsert = true, ColumnDescription = "最后密码修改时间")]
        public DateTime? LastModifyPwdDate { get; set; }
        /// <summary>
        /// åœ°å€
        /// </summary>
        [SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "地址")]
        public string Address { get; set; }
        /// <summary>
        /// å®¡æ ¸æ—¶é—´
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "审核时间")]
        public DateTime? AuditDate { get; set; }
        /// <summary>
        /// å®¡æ ¸çŠ¶æ€
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "审核状态")]
        public int? AuditStatus { get; set; }
        /// <summary>
        /// å®¡æ ¸äºº
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "审核人")]
        public string Auditor { get; set; }
        /// <summary>
        /// ä»¤ç‰Œ
        /// </summary>
        [SugarColumn(Length = 500, IsNullable = true, ColumnDescription = "令牌")]
        public string Token { get; set; }
        /// <summary>
        /// ç§Ÿæˆ·ID
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "租户ID", DefaultValue = "0")]
        public long TenantId { get; set; }
    }
}