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_resources")]
[PrimaryKey(new string[] { "Id" } , AutoIncrement = false)]
public class Resources : BaseEntity
{
public Resources()
{
}
/**
* 租户ID
*/
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/**
* 资源分组
*/
[JsonProperty(PropertyName = "group")]
[Column("group")]
public string Group { get; set; }
/**
* 资源名称
*/
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
/**
* 资源标识
*/
[JsonProperty(PropertyName = "keycode")]
[Column("keycode")]
public string KeyCode { get; set; }
/**
* 资源数据
*/
[JsonProperty(PropertyName = "keydata")]
[Column("keydata")]
public string KeyData { get; set; }
/**
* 是否启用
*/
[JsonProperty(PropertyName = "enable")]
[Column("enable")]
public int Enable { get; set; }
///
/// 权限控制码
///
[JsonProperty(PropertyName = "permission")]
[Column("permission")]
public string PermissionCode { get; set; }
}
}