using SqlSugar;
using System;
namespace New_College.Model.Models
{
///
/// 接口API地址信息表
///
public class Modules
{
public Modules()
{
//this.ChildModule = new List();
//this.ModulePermission = new List();
//this.RoleModulePermission = new List();
}
///
/// ID
///
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
///获取或设置是否禁用,逻辑上的删除,非物理删除
///
[SugarColumn(IsNullable = true)]
public bool? IsDeleted { get; set; }
///
/// 父ID
///
[SugarColumn(IsNullable = true)]
public int? ParentId { get; set; }
///
/// 名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
public string Name { get; set; }
///
/// 菜单链接地址
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string LinkUrl { get; set; }
///
/// 区域名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 2000, IsNullable = true)]
public string Area { get; set; }
///
/// 控制器名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 2000, IsNullable = true)]
public string Controller { get; set; }
///
/// Action名称
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 2000, IsNullable = true)]
public string Action { get; set; }
///
/// 图标
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string Icon { get; set; }
///
/// 菜单编号
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 10, IsNullable = true)]
public string Code { get; set; }
///
/// 排序
///
public int OrderSort { get; set; }
///
/// /描述
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string Description { get; set; }
///
/// 是否是右侧菜单
///
public bool IsMenu { get; set; }
///
/// 是否激活
///
public bool Enabled { get; set; }
///
/// 创建ID
///
[SugarColumn(IsNullable = true)]
public int? CreateId { get; set; }
///
/// 创建者
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 50, IsNullable = true)]
public string CreateBy { get; set; }
///
/// 创建时间
///
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; }
///
/// 修改ID
///
[SugarColumn(IsNullable = true)]
public int? ModifyId { get; set; }
///
/// 修改者
///
[SugarColumn(ColumnDataType = "nvarchar", Length = 100, IsNullable = true)]
public string ModifyBy { get; set; }
///
/// 修改时间
///
[SugarColumn(IsNullable = true)]
public DateTime? ModifyTime { get; set; } = DateTime.Now;
//public virtual Module ParentModule { get; set; }
//public virtual ICollection ChildModule { get; set; }
//public virtual ICollection ModulePermission { get; set; }
//public virtual ICollection RoleModulePermission { get; set; }
}
}