You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NPoco;
namespace POSV.Entity
{
/// <summary>
/// 桌台使用情况表
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_table_ext")]
[PrimaryKey(new string[] { "id","tableId" } , AutoIncrement = false)]
public class TableExt : BaseEntity
{
[JsonProperty(PropertyName = "tableId")]
[Column("tableId")]
public string TableId { get; set; }
/// <summary>
/// 桌台状态
/// </summary>
[JsonProperty(PropertyName = "tableStatus")]
[Column("tableStatus")]
public TableStatus TableStatus { get; set; } = TableStatus.;
/// <summary>
/// 开台日期
/// </summary>
[JsonProperty(PropertyName = "openTime")]
[Column("openTime")]
public string OpenTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
/// <summary>
/// 开台操作员
/// </summary>
[JsonProperty(PropertyName = "openUser")]
[Column("openUser")]
public string OpenUser { get; set; }
/// <summary>
/// 实际座位数
/// </summary>
[JsonProperty(PropertyName = "tableNumber")]
[Column("tableNumber")]
public int TableNumber { get; set; }
}
public enum TableStatus
{
= -1,
= 0,
= 1,
= 2
}
}