52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
using Dlhis.Entity.Canteen.Enums;
|
|
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Middle.Entities;
|
|
|
|
[SugarTable(TableName = "BusinessShiftMealRelationship", TableDescription = "营业点餐次组合")]
|
|
public class LocalBusinessShiftMealRelationshipEntity : SugarBaseEntity, ITenantId
|
|
{
|
|
public new int Id { get; set; }
|
|
/// <summary>
|
|
/// 餐别Code
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "餐别Code", UniqueGroupNameList = new[] { "idx_CanteenBusinessShiftRelationship_shiftcode_shifttype" })]
|
|
public Guid ShiftCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐别手工号
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "餐别编码")]
|
|
public string ShiftCustomCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐次
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "餐次", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), UniqueGroupNameList = new[] { "idx_CanteenBusinessShiftRelationship_shiftcode_shifttype" })]
|
|
public ShiftEnumType ShiftType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 经营开始时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "经营开始时间")]
|
|
public DateTime Start { get; set; }
|
|
|
|
/// <summary>
|
|
/// 经营结束时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "经营结束时间")]
|
|
public DateTime End { get; set; }
|
|
|
|
/// <summary>
|
|
/// 序号
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "序号")]
|
|
public int Sequence { get; set; }
|
|
|
|
|
|
public string TenantId { get; set; }
|
|
|
|
} |