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.

90 lines
2.1 KiB
C#

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