55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using Dlhis.Entity.Visitor.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using Mapster;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Visitor.Entity;
|
|
|
|
/// <summary>
|
|
/// 预约区域
|
|
/// </summary>
|
|
[SugarTable(TableName = "AppointmentArea", TableDescription = "预约区域")]
|
|
public class AppointmentAreaEntity : SugarBaseEntity, ITenantId, ISoftDeleted
|
|
{
|
|
/// <summary>
|
|
/// 区域类型
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "区域类型", ColumnDataType = "varchar(50)",
|
|
SqlParameterDbType = typeof(EnumToStringConvert),
|
|
UniqueGroupNameList = new[] { "idx_ApponintmentArea_t_cc_tid" })]
|
|
public AppointmentAreaEnumType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自定义编码
|
|
/// </summary>
|
|
[AdaptIgnore(MemberSide.Destination)]
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "自定义编码",
|
|
UniqueGroupNameList = new[] { "idx_ApponintmentArea_t_cc_tid" })]
|
|
public string CustomCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "名称")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
|
|
public string Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 基地/租户
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = " 基地/租户",
|
|
UniqueGroupNameList = new[] { "idx_ApponintmentArea_t_cc_tid" })]
|
|
public string TenantId { get; set; }
|
|
|
|
|
|
public bool IsDeleted { get; set; }
|
|
}
|