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