41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			41 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
| 
								 | 
							
								using System;
							 | 
						|||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						|||
| 
								 | 
							
								using System.Linq;
							 | 
						|||
| 
								 | 
							
								using SqlSugar;
							 | 
						|||
| 
								 | 
							
								namespace DM_Weight.Models
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
								    /// <summary>
							 | 
						|||
| 
								 | 
							
								    /// 
							 | 
						|||
| 
								 | 
							
								    ///</summary>
							 | 
						|||
| 
								 | 
							
								    [SugarTable("role")]
							 | 
						|||
| 
								 | 
							
								    public class RoleDm
							 | 
						|||
| 
								 | 
							
								    {
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///  
							 | 
						|||
| 
								 | 
							
								        ///</summary>
							 | 
						|||
| 
								 | 
							
								         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
							 | 
						|||
| 
								 | 
							
								         public int? Id { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///  
							 | 
						|||
| 
								 | 
							
								        ///</summary>
							 | 
						|||
| 
								 | 
							
								         [SugarColumn(ColumnName="role_name"    )]
							 | 
						|||
| 
								 | 
							
								         public string RoleName { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///  
							 | 
						|||
| 
								 | 
							
								        ///</summary>
							 | 
						|||
| 
								 | 
							
								        //[SugarColumn(ColumnName="role_des"    )]
							 | 
						|||
| 
								 | 
							
								        //public string RoleDes { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///  
							 | 
						|||
| 
								 | 
							
								        ///</summary>
							 | 
						|||
| 
								 | 
							
								        ///[SugarColumn(ColumnName="permissions"    )]
							 | 
						|||
| 
								 | 
							
								        [SugarColumn(ColumnName = "permissions", ColumnDataType = "varchar(4000)" /*可以设置类型*/, IsJson = true)]//必填
							 | 
						|||
| 
								 | 
							
								        public List<PremissionDm> Permissions { get; set; }
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        ///  
							 | 
						|||
| 
								 | 
							
								        ///</summary>
							 | 
						|||
| 
								 | 
							
								         [SugarColumn(ColumnName="machine_id"    )]
							 | 
						|||
| 
								 | 
							
								         public string MachineId { get; set; }
							 | 
						|||
| 
								 | 
							
								    }
							 | 
						|||
| 
								 | 
							
								}
							 |