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.Voucher; /// /// 券 /// [SugarTable("Vouchers", TableDescription = "券")] public class VoucherEntity : SugarBaseEntity, IVersion { /// /// 券唯一标识 /// [SugarColumn(IsNullable = false, ColumnDescription = "券唯一标识")] public string No { get; set; } /// /// 获取日期时间 /// public DateTime ClaimDateTime { get; set; } /// /// 类型 /// [SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", ColumnDescription = "券类型", SqlParameterDbType = typeof(EnumToStringConvert))] public VoucherEnumType Type { get; set; } /// /// 初始余额 /// [SugarColumn(IsNullable = false, ColumnDescription = "初始余额")] public decimal OriginalBalance { get; set; } /// /// 当前余额 /// [SugarColumn(IsNullable = false, ColumnDescription = "当前余额")] public decimal Balance { get; set; } /// /// 描述 /// [SugarColumn(IsNullable = true, ColumnDescription = "描述")] public string Description { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = true, ColumnDescription = "备注")] public string Remark { get; set; } public int Version { get; set; } }