42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
|
|
namespace Dlhis.Entity.Canteen.Entities;
|
|
|
|
[SugarTable(TableName = "DishesCategory", TableDescription = "菜品分类")]
|
|
public class DishesCategoryEntity : SugarBaseEntity, ITenantId
|
|
{
|
|
/// <summary>
|
|
/// 营业点
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "营业点", IsNullable = false)]
|
|
public Guid BusinessPlaceCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// PCode
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public Guid? PCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Code
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false)]
|
|
public Guid Code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "名称", IsNullable = false)]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 序号
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "序号", IsNullable = false, DefaultValue = "100")]
|
|
public int Sequence { get; set; } = 100;
|
|
|
|
|
|
public string TenantId { get; set; }
|
|
} |