Files
jinko.yikatong/Src/Dlhis.Entity/Canteen/Entities/TicketEntity.cs
2025-02-18 16:41:47 +08:00

52 lines
1.5 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;
/// <summary>
/// 券
/// </summary>
[SugarTable("Tickets", TableDescription = "券")]
public class TicketEntity : SugarBaseEntity, ITenantId
{
/// <summary>
/// 类型
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", ColumnDescription = "券类型", SqlParameterDbType = typeof(EnumToStringConvert))]
public TicketEnumType Type { get; set; }
/// <summary>
/// 工号
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "工号")]
public string UserCode { get; set; }
/// <summary>
/// 初始余额
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "初始余额")]
public decimal OriginalAmount { get; set; }
/// <summary>
/// 当前余额
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "当前余额")]
public decimal Amount { get; set; }
/// <summary>
/// 消费码
/// </summary>
[SugarColumn(IsNullable = false, ColumnDescription = "消费码")]
public string QrCode { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "备注")]
public string Remark { get; set; }
public string TenantId { get; set; }
}