69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using SqlSugar;
|
|
using LearningOfficer.OA.Core.Entities;
|
|
using LearningOfficer.OA.Common.Configs;
|
|
using Grpc.Core;
|
|
using UserCenter.Model.Enum;
|
|
|
|
namespace LearningOfficer.OA.Core.Entities.UserCenter
|
|
{
|
|
/// <summary>
|
|
/// 职位关系表
|
|
///</summary>
|
|
[SugarTable("positionrelation"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
|
|
public class Positionrelation : BaseEntity
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:用户编号
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "UserId" )]
|
|
public long UserId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:职位编号
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "PositionId" )]
|
|
public long PositionId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:添加时间
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "CreateTime" )]
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:启用状态 默认值 true
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Enable" )]
|
|
public bool Enable { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 备 注:职位结束时间
|
|
/// 默认值:
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "EndTime" )]
|
|
public DateTime? EndTime { get; set; }
|
|
/// <summary>
|
|
/// 职位关系状态
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Status")]
|
|
public PositionRelationStatusEnum Status { get; set; }
|
|
|
|
|
|
}
|
|
|
|
} |