feat tickets
This commit is contained in:
52
Src/Dlhis.Entity/Canteen/Entities/TicketEntity.cs
Normal file
52
Src/Dlhis.Entity/Canteen/Entities/TicketEntity.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user