53 lines
1.6 KiB
C#
53 lines
1.6 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
|
|
{
|
|
/// <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; }
|
|
|
|
public bool IsDeleted { get; set; }
|
|
} |