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_visitor")]
[PrimaryKey(new string[] { "id" } , AutoIncrement = false)]
public class Visitor : BaseEntity
{
///
/// 租户ID
///
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
///
/// 门店ID
///
[JsonProperty(PropertyName = "storeId")]
[Column("storeId")]
public string StoreId { get; set; }
///
/// 编号
///
[JsonProperty(PropertyName = "no")]
[Column("no")]
public string No { get; set; } = "999";
///
/// 名称
///
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
///
/// 来电号码
///
[JsonProperty(PropertyName = "tel")]
[Column("tel")]
public string Tel { get; set; }
///
/// 拼音码
///
[JsonProperty(PropertyName = "spell")]
[Column("spell")]
public string Spell { get; set; } = "";
///
/// 性别(0-女;1-男;)
///
[JsonProperty(PropertyName = "sex")]
[Column("sex")]
public int Sex { get; set; } = 1;
///
/// 称谓(先生;女士;小姐;夫人;教授等)
///
[JsonProperty(PropertyName = "title")]
[Column("title")]
public string Title { get; set; } = string.Empty;
///
/// 职位
///
[JsonProperty(PropertyName = "position")]
[Column("position")]
public string Position { get; set; } = string.Empty;
///
/// 联系方式一
///
[JsonProperty(PropertyName = "fphone")]
[Column("fphone")]
public string Phone1 { get; set; } = string.Empty;
///
/// 联系方式二
///
[JsonProperty(PropertyName = "sphone")]
[Column("sphone")]
public string Phone2 { get; set; } = string.Empty;
///
/// 备注说明
///
[JsonProperty(PropertyName = "description")]
[Column("description")]
public string Description { get; set; } = "收银前台添加";
///
/// 是否新增
///
[JsonProperty(PropertyName = "upload")]
[Column("upload")]
public int Upload { get; set; } = 0;
///
/// 扩展字段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; }
///
/// 近期购物地址
///
[JsonProperty(PropertyName = "address")]
[Reference(ReferenceType.Many, ColumnName = "Id", ReferenceMemberName = "VisitorId")]
public List Address { get; set; } = new List();
}
}