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; } /// /// 餐别Code /// [SugarColumn(ColumnDescription = "餐别Code", UniqueGroupNameList = new[] { "idx_CanteenBusinessShiftRelationship_shiftcode_shifttype" })] public Guid ShiftCode { get; set; } /// /// 餐别手工号 /// [SugarColumn(ColumnDescription = "餐别编码")] public string ShiftCustomCode { get; set; } /// /// 餐次 /// [SugarColumn(ColumnDescription = "餐次", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), UniqueGroupNameList = new[] { "idx_CanteenBusinessShiftRelationship_shiftcode_shifttype" })] public ShiftEnumType ShiftType { get; set; } /// /// 经营开始时间 /// [SugarColumn(ColumnDescription = "经营开始时间")] public DateTime Start { get; set; } /// /// 经营结束时间 /// [SugarColumn(ColumnDescription = "经营结束时间")] public DateTime End { get; set; } /// /// 序号 /// [SugarColumn(ColumnDescription = "序号")] public int Sequence { get; set; } public string TenantId { get; set; } }