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