182 lines
6.7 KiB
C#
182 lines
6.7 KiB
C#
using SqlSugar;
|
||
|
||
namespace YY.Admin.Core;
|
||
|
||
/// <summary>
|
||
/// Jeecg 用户同构表(桌面端)
|
||
/// 说明:
|
||
/// 1. 按 JeecgBoot 的 sys_user 字段模型定义。
|
||
/// 2. 为避免影响现有 YY.Admin 的 sys_user 业务表,这里单独落表 jeecg_sys_user。
|
||
/// </summary>
|
||
[SugarTable("jeecg_sys_user", "Jeecg用户同构表")]
|
||
[SysTable]
|
||
public class JeecgSysUser
|
||
{
|
||
/// <summary>id(Jeecg为字符串雪花ID)</summary>
|
||
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, Length = 64)]
|
||
public string Id { get; set; } = string.Empty;
|
||
|
||
/// <summary>登录账号</summary>
|
||
[SugarColumn(ColumnName = "username", Length = 64, IsNullable = true)]
|
||
public string? Username { get; set; }
|
||
|
||
/// <summary>真实姓名</summary>
|
||
[SugarColumn(ColumnName = "realname", Length = 64, IsNullable = true)]
|
||
public string? Realname { get; set; }
|
||
|
||
/// <summary>密码</summary>
|
||
[SugarColumn(ColumnName = "password", Length = 512, IsNullable = true)]
|
||
public string? Password { get; set; }
|
||
|
||
/// <summary>密码盐</summary>
|
||
[SugarColumn(ColumnName = "salt", Length = 64, IsNullable = true)]
|
||
public string? Salt { get; set; }
|
||
|
||
/// <summary>头像</summary>
|
||
[SugarColumn(ColumnName = "avatar", Length = 512, IsNullable = true)]
|
||
public string? Avatar { get; set; }
|
||
|
||
/// <summary>生日</summary>
|
||
[SugarColumn(ColumnName = "birthday", IsNullable = true)]
|
||
public DateTime? Birthday { get; set; }
|
||
|
||
/// <summary>性别(1男2女)</summary>
|
||
[SugarColumn(ColumnName = "sex", IsNullable = true)]
|
||
public int? Sex { get; set; }
|
||
|
||
/// <summary>邮箱</summary>
|
||
[SugarColumn(ColumnName = "email", Length = 128, IsNullable = true)]
|
||
public string? Email { get; set; }
|
||
|
||
/// <summary>手机号</summary>
|
||
[SugarColumn(ColumnName = "phone", Length = 32, IsNullable = true)]
|
||
public string? Phone { get; set; }
|
||
|
||
/// <summary>登录选择部门编码</summary>
|
||
[SugarColumn(ColumnName = "org_code", Length = 128, IsNullable = true)]
|
||
public string? OrgCode { get; set; }
|
||
|
||
/// <summary>登录选择租户ID</summary>
|
||
[SugarColumn(ColumnName = "login_tenant_id", IsNullable = true)]
|
||
public int? LoginTenantId { get; set; }
|
||
|
||
/// <summary>状态(1正常 2冻结)</summary>
|
||
[SugarColumn(ColumnName = "status", IsNullable = true)]
|
||
public int? Status { get; set; }
|
||
|
||
/// <summary>删除标志(0正常 1已删)</summary>
|
||
[SugarColumn(ColumnName = "del_flag", IsNullable = true)]
|
||
public int? DelFlag { get; set; }
|
||
|
||
/// <summary>工号</summary>
|
||
[SugarColumn(ColumnName = "work_no", Length = 64, IsNullable = true)]
|
||
public string? WorkNo { get; set; }
|
||
|
||
/// <summary>座机号</summary>
|
||
[SugarColumn(ColumnName = "telephone", Length = 32, IsNullable = true)]
|
||
public string? Telephone { get; set; }
|
||
|
||
/// <summary>创建人</summary>
|
||
[SugarColumn(ColumnName = "create_by", Length = 64, IsNullable = true)]
|
||
public string? CreateBy { get; set; }
|
||
|
||
/// <summary>创建时间</summary>
|
||
[SugarColumn(ColumnName = "create_time", IsNullable = true)]
|
||
public DateTime? CreateTime { get; set; }
|
||
|
||
/// <summary>更新人</summary>
|
||
[SugarColumn(ColumnName = "update_by", Length = 64, IsNullable = true)]
|
||
public string? UpdateBy { get; set; }
|
||
|
||
/// <summary>更新时间</summary>
|
||
[SugarColumn(ColumnName = "update_time", IsNullable = true)]
|
||
public DateTime? UpdateTime { get; set; }
|
||
|
||
/// <summary>流程同步标志</summary>
|
||
[SugarColumn(ColumnName = "activiti_sync", IsNullable = true)]
|
||
public int? ActivitiSync { get; set; }
|
||
|
||
/// <summary>身份(0普通成员 1上级)</summary>
|
||
[SugarColumn(ColumnName = "user_identity", IsNullable = true)]
|
||
public int? UserIdentity { get; set; }
|
||
|
||
/// <summary>负责部门IDs</summary>
|
||
[SugarColumn(ColumnName = "depart_ids", Length = 1024, IsNullable = true)]
|
||
public string? DepartIds { get; set; }
|
||
|
||
/// <summary>设备ID</summary>
|
||
[SugarColumn(ColumnName = "client_id", Length = 256, IsNullable = true)]
|
||
public string? ClientId { get; set; }
|
||
|
||
/// <summary>流程状态</summary>
|
||
[SugarColumn(ColumnName = "bpm_status", Length = 64, IsNullable = true)]
|
||
public string? BpmStatus { get; set; }
|
||
|
||
/// <summary>个性签名</summary>
|
||
[SugarColumn(ColumnName = "sign", Length = 512, IsNullable = true)]
|
||
public string? Sign { get; set; }
|
||
|
||
/// <summary>是否开启个性签名</summary>
|
||
[SugarColumn(ColumnName = "sign_enable", IsNullable = true)]
|
||
public int? SignEnable { get; set; }
|
||
|
||
/// <summary>主岗位</summary>
|
||
[SugarColumn(ColumnName = "main_dep_post_id", Length = 128, IsNullable = true)]
|
||
public string? MainDepPostId { get; set; }
|
||
|
||
/// <summary>职务(字典)</summary>
|
||
[SugarColumn(ColumnName = "position_type", Length = 64, IsNullable = true)]
|
||
public string? PositionType { get; set; }
|
||
|
||
/// <summary>最后修改密码时间</summary>
|
||
[SugarColumn(ColumnName = "last_pwd_update_time", IsNullable = true)]
|
||
public DateTime? LastPwdUpdateTime { get; set; }
|
||
|
||
/// <summary>排序</summary>
|
||
[SugarColumn(ColumnName = "sort", IsNullable = true)]
|
||
public int? Sort { get; set; }
|
||
|
||
/// <summary>是否隐藏联系方式 0否1是</summary>
|
||
[SugarColumn(ColumnName = "iz_hide_contact", Length = 8, IsNullable = true)]
|
||
public string? IzHideContact { get; set; }
|
||
|
||
// ------------------------- 非持久化字段(与 Jeecg 实体保持一致) -------------------------
|
||
|
||
/// <summary>部门名称(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? OrgCodeTxt { get; set; }
|
||
|
||
/// <summary>职务(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? Post { get; set; }
|
||
|
||
/// <summary>多租户ids临时字段(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? RelTenantIds { get; set; }
|
||
|
||
/// <summary>首页路径(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? HomePath { get; set; }
|
||
|
||
/// <summary>职位名称(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? PostText { get; set; }
|
||
|
||
/// <summary>是否绑定第三方(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public bool IzBindThird { get; set; }
|
||
|
||
/// <summary>兼职岗位(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? OtherDepPostId { get; set; }
|
||
|
||
/// <summary>登录时选择部门编码(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? LoginOrgCode { get; set; }
|
||
|
||
/// <summary>所属部门IDs(非持久化)</summary>
|
||
[SugarColumn(IsIgnore = true)]
|
||
public string? BelongDepIds { get; set; }
|
||
}
|
||
|