using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace DM_Weight.Models
{
    /// 
    /// 
    ///
    [SugarTable("role")]
    public class RoleDm
    {
        /// 
        ///  
        ///
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int? Id { get; set; }
        /// 
        ///  
        ///
         [SugarColumn(ColumnName="role_name"    )]
         public string RoleName { get; set; }
        /// 
        ///  
        ///
        //[SugarColumn(ColumnName="role_des"    )]
        //public string RoleDes { get; set; }
        /// 
        ///  
        ///
        ///[SugarColumn(ColumnName="permissions"    )]
        [SugarColumn(ColumnName = "permissions", ColumnDataType = "varchar(4000)" /*可以设置类型*/, IsJson = true)]//必填
        public List Permissions { get; set; }
        /// 
        ///  
        ///
         [SugarColumn(ColumnName="machine_id"    )]
         public string MachineId { get; set; }
        /// 
        /// 抽屉权限
        /// 
        [SugarColumn(ColumnName = "drawer")]
        public string drawer { get; set; }
    }
}