namespace Admin.NET.Core;
///
/// 系统用户扩展机构表
///
[SugarTable(null, "系统用户扩展机构表")]
[SystemTable]
public class SysUserExtOrg : EntityBaseId
{
///
/// 用户Id
///
[SugarColumn(ColumnDescription = "用户Id")]
public long UserId { get; set; }
///
/// 机构Id
///
[SugarColumn(ColumnDescription = "机构Id")]
public long OrgId { get; set; }
///
/// 机构
///
[SugarColumn(IsIgnore = true)]
[Navigate(NavigateType.OneToOne, nameof(OrgId))]
public SysOrg SysOrg { get; set; }
///
/// 职位Id
///
[SugarColumn(ColumnDescription = "职位Id")]
public long PosId { get; set; }
///
/// 职位
///
[SugarColumn(IsIgnore = true)]
[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; }
}