using SqlSugar;
using System;
namespace Tiobon.Core.Model.Models
{
///
/// 接口API地址信息表
///
public class Modules : ModulesRoot
{
public Modules()
{
//this.ChildModule = new List();
//this.ModulePermission = new List();
//this.RoleModulePermission = new List();
}
///
///获取或设置是否禁用,逻辑上的删除,非物理删除
///
[SugarColumn(IsNullable = true)]
public bool? IsDeleted { get; set; }
///
/// 名称
///
[SugarColumn(Length = 50, IsNullable = true)]
public string Name { get; set; }
///
/// 菜单链接地址
///
[SugarColumn(Length = 100, IsNullable = true)]
public string LinkUrl { get; set; }
///
/// 区域名称
///
[SugarColumn(Length = 2000, IsNullable = true)]
public string Area { get; set; }
///
/// 控制器名称
///
[SugarColumn(Length = 2000, IsNullable = true)]
public string Controller { get; set; }
///
/// Action名称
///
[SugarColumn(Length = 2000, IsNullable = true)]
public string Action { get; set; }
///
/// 图标
///
[SugarColumn(Length = 100, IsNullable = true)]
public string Icon { get; set; }
///
/// 菜单编号
///
[SugarColumn(Length = 10, IsNullable = true)]
public string Code { get; set; }
///
/// 排序
///
public int OrderSort { get; set; }
///
/// /描述
///
[SugarColumn(Length = 100, IsNullable = true)]
public string Description { get; set; }
///
/// 是否是右侧菜单
///
public bool IsMenu { get; set; }
///
/// 是否激活
///
public bool Enabled { get; set; }
///
/// 创建ID
///
[SugarColumn(IsNullable = true)]
public long? CreateId { get; set; }
///
/// 创建者
///
[SugarColumn(Length = 50, IsNullable = true)]
public string CreateBy { get; set; }
///
/// 创建时间
///
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; } = DateTime.Now;
///
/// 修改ID
///
[SugarColumn(IsNullable = true)]
public long? ModifyId { get; set; }
///
/// 修改者
///
[SugarColumn(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; }
}
}