using Dlhis.Entity.Canteen.Enums;
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Canteen.Entities;
///
/// 券
///
[SugarTable("Tickets", TableDescription = "券")]
public class TicketEntity : SugarBaseEntity, ITenantId
{
///
/// 类型
///
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", ColumnDescription = "券类型", SqlParameterDbType = typeof(EnumToStringConvert))]
public TicketEnumType Type { get; set; }
///
/// 工号
///
[SugarColumn(IsNullable = false, ColumnDescription = "工号")]
public string UserCode { get; set; }
///
/// 初始余额
///
[SugarColumn(IsNullable = false, ColumnDescription = "初始余额")]
public decimal OriginalAmount { get; set; }
///
/// 当前余额
///
[SugarColumn(IsNullable = false, ColumnDescription = "当前余额")]
public decimal Amount { get; set; }
///
/// 消费码
///
[SugarColumn(IsNullable = false, ColumnDescription = "消费码")]
public string QrCode { get; set; }
///
/// 备注
///
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
public string Remark { get; set; }
public string TenantId { get; set; }
}