using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using Mapster;
using SqlSugar;
namespace Dlhis.Entity.Canteen.Entities;
///
/// 菜品表
///
[SugarTable(TableName = "Dishes", TableDescription = "菜品表")]
public class DishesEntity : SugarBaseEntity, IImageUrl, ITenantId
{
///
/// 分类
///
[SugarColumn(ColumnDescription = "分类", IsNullable = false)]
public Guid CategoryCode { get; set; }
///
/// 营业点
///
[SugarColumn(ColumnDescription = "营业点", IsNullable = false)]
public Guid BusinessPlaceCode { get; set; }
///
/// 菜品编码
///
[AdaptIgnore(MemberSide.Destination)]
[SugarColumn(ColumnDescription = "菜品编码", IsNullable = false)]
public string CustomCode { get; set; }
///
/// 菜品名称
///
[SugarColumn(ColumnDescription = "菜品名称", IsNullable = false)]
public string Name { get; set; }
///
/// 描述
///
[SugarColumn(ColumnDescription = "描述")]
public string Description { get; set; }
///
/// 单价
///
[SugarColumn(ColumnDescription = "单价")]
public decimal Price { get; set; }
///
/// 单位
///
[SugarColumn(ColumnDescription = "单位", IsJson = true, DefaultValue = "[]")]
public List Units { get; set; }
///
/// 图片
///
[SugarColumn(ColumnDescription = "图片")]
public string ImageUrl { get; set; }
///
/// 是否启用
///
[SugarColumn(ColumnDataType = "bit", ColumnDescription = "是否启用")]
public bool Enable { get; set; }
public string TenantId { get; set; }
}