75 lines
2.2 KiB
C#
75 lines
2.2 KiB
C#
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using Mapster;
|
|
using SqlSugar;
|
|
|
|
namespace Dlhis.Entity.Basic.Entity;
|
|
|
|
/// <summary>
|
|
/// 工作网格
|
|
/// </summary>
|
|
[SugarTable(TableName = "WorkGrids")]
|
|
public class WorkGridEntity : SugarBaseEntity, ISoftDeleted, ITenantId
|
|
{
|
|
/// <summary>
|
|
/// 网格code
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "网格code")]
|
|
public Guid Code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 网格名称
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "网格名称")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 负责人工号
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "负责人工号", UniqueGroupNameList = new[] { "idx_WorkGrid_LeaderUserCode" })]
|
|
public string LeaderUserCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
|
|
public string Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排班用户数提醒
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "排班用户数提醒")]
|
|
public int MaxUserTipCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排班连续天数提醒天数
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "排班连续天数提醒天数")]
|
|
public int MaxConsecutiveTipCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 连续排班限制人数
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "连续排班限制人数")]
|
|
public int MaxConsecutiveLimitCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 别名
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string Alias { get; set; }
|
|
|
|
/// <summary>
|
|
/// 编制人数
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, DefaultValue = "100")]
|
|
public int Count { get; set; } = 50;
|
|
|
|
|
|
[SugarColumn(IsNullable = false, ColumnDataType = "bit")]
|
|
public bool IsDeleted { get; set; }
|
|
|
|
public string TenantId { get; set; }
|
|
} |