namespace YY.Admin.Core;
///
/// 系统用户扩展机构表
///
[SugarTable("sys_user_ext_org", "系统用户扩展机构表")]
[SysTable]
public partial class SysUserExtOrg : EntityBaseId
{
///
/// 用户Id
///
[SugarColumn(ColumnDescription = "用户Id")]
public long UserId { get; set; }
///
/// 用户
///
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[Navigate(NavigateType.OneToOne, nameof(UserId))]
public SysUser SysUser { get; set; }
///
/// 机构Id
///
[SugarColumn(ColumnDescription = "机构Id")]
public long OrgId { get; set; }
///
/// 机构
///
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[Navigate(NavigateType.OneToOne, nameof(OrgId))]
public SysOrg SysOrg { get; set; }
///
/// 职位Id
///
[SugarColumn(ColumnDescription = "职位Id")]
public long PosId { get; set; }
///
/// 职位
///
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[Navigate(NavigateType.OneToOne, nameof(PosId))]
public SysPos SysPos { get; set; }
///
/// 工号
///
[SugarColumn(ColumnDescription = "工号", Length = 32)]
[MaxLength(32)]
public string? JobNum { get; set; }
///
/// 职级
///
[SugarColumn(ColumnDescription = "职级", Length = 32)]
[MaxLength(32)]
public string? PosLevel { get; set; }
///
/// 入职日期
///
[SugarColumn(ColumnDescription = "入职日期")]
public DateTime? JoinDate { get; set; }
}