using Dlhis.Entity.Canteen.Enums;
using Kurisu.Core.DataAccess.Entity;
using Kurisu.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Canteen.Entities;
///
/// 菜单表
///
[SugarTable(TableName = "DishesMenu", TableDescription = "菜单表")]
public class DishesMenuEntity : SugarBaseEntity, ITenantId, IVersion
{
///
/// 菜单编码
///
[SugarColumn(ColumnDescription = "菜单编码")]
public string CustomCode { get; set; }
///
/// 菜单类型
///
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public CanteenApplicaitonTypeEnumType Type { get; set; }
///
/// 所属营业点
///
[SugarColumn(ColumnDescription = "所属营业点")]
public Guid BusinessPlaceCode { get; set; }
///
/// 营业日期-开始
///
[SugarColumn(ColumnDescription = "营业日期开始")]
public DateTime StartDate { get; set; }
///
/// 营业日期-结束
///
[SugarColumn(ColumnDescription = "营业日期结束")]
public DateTime EndDate { get; set; }
///
/// 餐次
///
[SugarColumn(ColumnDataType = "varchar(50)", ColumnDescription = "餐次")]
public ShiftEnumType ShiftType { get; set; }
///
/// 菜品编码
///
public string DishesCode { get; set; }
///
/// 剩余数量
///
public int Number { get; set; }
///
/// 单价
///
public decimal? Price { get; set; }
///
/// 并发控制
///
public int Version { get; set; }
public string TenantId { get; set; }
}