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()
{
}
///
/// 租户ID
///
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
///
/// 编号
///
[JsonProperty(PropertyName = "no")]
[Column("no")]
public string No { get; set; }
///
/// 名称
///
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
///
/// 门店ID
///
[JsonProperty(PropertyName = "storeId")]
[Column("storeId")]
public string StoreId { get; set; }
///
/// 区域ID
///
[JsonProperty(PropertyName = "areaId")]
[Column("areaId")]
public string AreaId { get; set; }
///
/// 类型ID
///
[JsonProperty(PropertyName = "typeId")]
[Column("typeId")]
public string TypeId { get; set; }
///
/// 人数
///
[JsonProperty(PropertyName = "number")]
[Column("number")]
public int Number { get; set; }
///
/// 扩展字段1
///
[JsonProperty(PropertyName = "ext1")]
[Column("ext1")]
public string Ext1 { get; set; }
///
/// 扩展字段2
///
[JsonProperty(PropertyName = "ext2")]
[Column("ext2")]
public string Ext2 { get; set; }
///
/// 扩展字段3
///
[JsonProperty(PropertyName = "ext3")]
[Column("ext3")]
public string Ext3 { get; set; }
///
/// 当前页码
///
[Ignore]
[JsonIgnore]
public int Pager { get; set; }
[Reference(ReferenceType.OneToOne , ColumnName = "Id" , ReferenceMemberName = "TableId")]
public TableExt TableExt { get; set; }
}
}