82 lines
2.5 KiB
C#
82 lines
2.5 KiB
C#
using Kurisu.AspNetCore.DataAccess.Entity;
|
|
using Kurisu.AspNetCore.DataAccess.SqlSugar;
|
|
using SqlSugar;
|
|
|
|
namespace Dlhis.Entity.Canteen.Entities.EMealVoucher;
|
|
|
|
/// <summary>
|
|
/// 电子餐券明细
|
|
/// </summary>
|
|
[SugarTable(TableName = "EMealVoucherDetail", TableDescription = "电子餐券明细")]
|
|
public class EMealVoucherDetailEntity : SugarBaseEntity, IVersion
|
|
{
|
|
/// <summary>
|
|
/// 主表id
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "主表id")]
|
|
public long VoucherId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 流水号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "流水号", UniqueGroupNameList = new[] { "idx_EMealVoucherDetail_no_idno" })]
|
|
public string No { get; set; }
|
|
|
|
/// <summary>
|
|
/// 人员类型
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "人员类型(新员工/外来人员)")]
|
|
public string UserType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 身份证
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "证件号", UniqueGroupNameList = new[] { "idx_EMealVoucherDetail_no_idno" })]
|
|
public string IdNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 用餐人
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "用餐人")]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 手机号
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "手机号")]
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// 就餐开始
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "使用开始", ColumnDataType = "date")]
|
|
public DateTime Start { get; set; }
|
|
|
|
/// <summary>
|
|
/// 就餐结束
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "使用结束", ColumnDataType = "date")]
|
|
public DateTime End { get; set; }
|
|
|
|
/// <summary>
|
|
/// 金额
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "余额", ColumnDataType = "decimal(16,2)")]
|
|
public decimal Balance { get; set; }
|
|
|
|
/// <summary>
|
|
/// 金额
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "原始余额", ColumnDataType = "decimal(16,2)")]
|
|
public decimal OriginBalance { get; set; }
|
|
|
|
/// <summary>
|
|
/// 版本
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = false, ColumnDescription = "版本")]
|
|
public int Version { get; set; }
|
|
|
|
|
|
[SugarColumn(IsNullable = true, ColumnDataType = "varchar(255)")]
|
|
public string Signature { get; set; }
|
|
} |