using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Code.Entity
{
///
/// 数据权限
///
[SqlSugar.SugarTable("code_data_rule", "数据权限")]
public class CodeDataRule : BaseModel
{
///
/// 资源标识(权限ID)
///
[SugarColumn(ColumnDescription = "资源标识(权限ID)")]
public long PermissionId { get; set; }
///
/// 权限模板类型
///
[SqlSugar.SugarColumn(ColumnDescription = "权限模板类型", IsNullable = false, Length = 200)]
public string TemplateName { get; set; }
///
/// 权限描述
///
[SqlSugar.SugarColumn(ColumnDescription = "权限描述", IsNullable = true, Length = 200)]
public string Description { get; set; }
///
/// 权限实体
///
[SqlSugar.SugarColumn(ColumnDescription = "权限实体", IsNullable = false, Length = 100)]
public string PermissionEntity { get; set; }
///
/// 用户Id
///
[SugarColumn(ColumnDescription = "用户Id")]
public long UserId { get; set; }
///
/// 用户名称
///
[SqlSugar.SugarColumn(ColumnDescription = "用户名称", IsNullable = true, Length = 100)]
public string UserName { get; set; }
///
/// 可视模板Id
///
[SugarColumn(ColumnDescription = "可视模板Id", IsNullable = true)]
public long? VisibleTemplateId { get; set; }
///
/// 可视权限模板范围
///
[SqlSugar.SugarColumn(ColumnDescription = "可视权限模板范围", IsNullable = true, Length = 200)]
public string VisibleRuleScope { get; set; }
///
/// 可视权限模板范围名称
///
[SqlSugar.SugarColumn(ColumnDescription = "可视权限模板范围名称", IsNullable = true, Length = 200)]
public string VisibleRuleScopeName { get; set; }
///
/// 操作模板Id
///
[SugarColumn(ColumnDescription = "操作模板Id", IsNullable = true)]
public long? OperateTemplateId { get; set; }
///
/// 操作权限模板范围
///
[SqlSugar.SugarColumn(ColumnDescription = "操作权限模板范围", IsNullable = true, Length = 200)]
public string OperateRuleScope { get; set; }
///
/// 操作权限模板范围名称
///
[SqlSugar.SugarColumn(ColumnDescription = "操作权限模板范围名称", IsNullable = true, Length = 200)]
public string OperateRuleScopeName { get; set; }
///
/// 状态
///
[SqlSugar.SugarColumn(ColumnDescription = "状态")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 排序号
///
[SqlSugar.SugarColumn(ColumnDescription = "排序号", IsNullable = true, DefaultValue = "100")]
public int OrderNo { get; set; }
}
}