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.

102 lines
2.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NPoco;
namespace POSV.Entity
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_table")]
[PrimaryKey(new string[] { "id" } , AutoIncrement = false)]
public class Table : BaseEntity
{
public Table()
{
}
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 编号
/// </summary>
[JsonProperty(PropertyName = "no")]
[Column("no")]
public string No { get; set; }
/// <summary>
/// 名称
/// </summary>
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
/// <summary>
/// 门店ID
/// </summary>
[JsonProperty(PropertyName = "storeId")]
[Column("storeId")]
public string StoreId { get; set; }
/// <summary>
/// 区域ID
/// </summary>
[JsonProperty(PropertyName = "areaId")]
[Column("areaId")]
public string AreaId { get; set; }
/// <summary>
/// 类型ID
/// </summary>
[JsonProperty(PropertyName = "typeId")]
[Column("typeId")]
public string TypeId { get; set; }
/// <summary>
/// 人数
/// </summary>
[JsonProperty(PropertyName = "number")]
[Column("number")]
public int Number { get; set; }
/// <summary>
/// 扩展字段1
/// </summary>
[JsonProperty(PropertyName = "ext1")]
[Column("ext1")]
public string Ext1 { get; set; }
/// <summary>
/// 扩展字段2
/// </summary>
[JsonProperty(PropertyName = "ext2")]
[Column("ext2")]
public string Ext2 { get; set; }
/// <summary>
/// 扩展字段3
/// </summary>
[JsonProperty(PropertyName = "ext3")]
[Column("ext3")]
public string Ext3 { get; set; }
/// <summary>
/// 当前页码
/// </summary>
[Ignore]
[JsonIgnore]
public int Pager { get; set; }
[Reference(ReferenceType.OneToOne , ColumnName = "Id" , ReferenceMemberName = "TableId")]
public TableExt TableExt { get; set; }
}
}