55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
using Dlhis.Entity.Canteen.Enums;
|
|
using Kurisu.Core.DataAccess.Entity;
|
|
using Kurisu.SqlSugar;
|
|
using SqlSugar;
|
|
using SqlSugar.DbConvert;
|
|
|
|
namespace Dlhis.Entity.Basic.Entity;
|
|
|
|
/// <summary>
|
|
/// 就餐人员
|
|
/// </summary>
|
|
[SugarTable(TableName = "CanteenUser", TableDescription = "就餐人员")]
|
|
public class CanteenUserEntity : SugarBaseEntity, IVersion, ITenantId
|
|
{
|
|
/// <summary>
|
|
/// 档案号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "档案号", UniqueGroupNameList = new[] { "idx_CanteenUser_UserNo" })]
|
|
public string UserNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消费人员类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert), ColumnDescription = "消费人员类型")]
|
|
public CanteenUserEnumType UserType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 余额
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "余额")]
|
|
public decimal Balance { get; set; }
|
|
|
|
/// <summary>
|
|
/// 余额(充值)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "余额(充值)")]
|
|
public decimal BalanceOfRecharge { get; set; }
|
|
|
|
/// <summary>
|
|
/// 余额(餐补)
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "余额(餐补)")]
|
|
public decimal BalanceOfSubsidies { get; set; }
|
|
|
|
/// <summary>
|
|
/// 版本号
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "版本号")]
|
|
public int Version { get; set; }
|
|
|
|
|
|
[SugarColumn(IndexGroupNameList = new[] { "idx_CanteenUser_TenantId" })]
|
|
public string TenantId { get; set; }
|
|
}
|