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_worker_role")] [PrimaryKey(new string[] { "id" } , AutoIncrement = false)] public class WorkerRole : BaseEntity { public WorkerRole() { } /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { get; set; } /// /// 门店ID /// [JsonProperty(PropertyName = "storeId")] [Column("storeId")] public string StoreId { get; set; } /// /// 员工ID /// [JsonProperty(PropertyName = "workerId")] [Column("workerId")] public string WorkerId { get; set; } /// /// 角色ID /// [JsonProperty(PropertyName = "roleId")] [Column("roleId")] public string RoleId { get; set; } /// /// 折扣权限 /// [JsonProperty(PropertyName = "discount")] [Column("discount")] public decimal Discount { get; set; } /// /// 免单权限 /// [JsonProperty(PropertyName = "free")] [Column("free")] public decimal Free { 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; } } }