38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using Mapster;
|
|
using SqlSugar;
|
|
|
|
namespace Dlhis.Entity.Basic.Entity;
|
|
|
|
/// <summary>
|
|
/// 工作网格
|
|
/// </summary>
|
|
[SugarTable(TableName = "WorkGrid")]
|
|
public class WorkGridEntity : SugarBaseEntity
|
|
{
|
|
/// <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; }
|
|
} |