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
{
///
/// 职位关系表
///
[SugarTable("positionrelation"), Tenant(nameof(ConnectionStringsSettings.UserCenterDb))]
public class Positionrelation : BaseEntity
{
///
/// 备 注:用户编号
/// 默认值:
///
[SugarColumn(ColumnName = "UserId" )]
public long UserId { get; set; }
///
/// 备 注:职位编号
/// 默认值:
///
[SugarColumn(ColumnName = "PositionId" )]
public long PositionId { get; set; }
///
/// 备 注:添加时间
/// 默认值:
///
[SugarColumn(ColumnName = "CreateTime" )]
public DateTime CreateTime { get; set; }
///
/// 备 注:启用状态 默认值 true
/// 默认值:
///
[SugarColumn(ColumnName = "Enable" )]
public bool Enable { get; set; }
///
/// 备 注:职位结束时间
/// 默认值:
///
[SugarColumn(ColumnName = "EndTime" )]
public DateTime? EndTime { get; set; }
///
/// 职位关系状态
///
[SugarColumn(ColumnName = "Status")]
public PositionRelationStatusEnum Status { get; set; }
}
}