162 lines
5.3 KiB
C#
162 lines
5.3 KiB
C#
using System;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using SqlSugar;
|
||
using VideoAnalysisCore.Interface;
|
||
|
||
namespace App.Model
|
||
{
|
||
///<summary>
|
||
/// 文件目录表
|
||
///</summary>
|
||
[SugarTable("FileDirectory")]
|
||
[Tenant("1002")]
|
||
public partial class FileDirectory
|
||
{
|
||
public FileDirectory(){
|
||
|
||
this.State =Convert.ToInt32("1");
|
||
this.IsCheckedSelect =true;
|
||
this.IsLastNode =false;
|
||
this.ParentId =Convert.ToInt64("0");
|
||
this.CreateTime =DateTime.Now;
|
||
this.DeleteState =false;
|
||
this.AliasName =Convert.ToString("");
|
||
this.IsPublic =false;
|
||
this.Types =Convert.ToInt32("-1");
|
||
this.Code =Convert.ToString("");
|
||
|
||
}
|
||
[SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
|
||
public long Id {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:名称
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "名称", ColumnDataType = "nvarchar(50)", IsNullable = false)]
|
||
public string Name {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:排序
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "排序", IsNullable = false)]
|
||
public int Sort {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:结构状态 1=显示
|
||
/// Default:1
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "结构状态 1=显示", IsNullable = false,DefaultValue ="1")]
|
||
public int State {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:是否自动授权
|
||
/// Default:1
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "是否自动授权", IsNullable = false, DefaultValue = "1")]
|
||
public bool IsCheckedSelect {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:是否最后一级节点
|
||
/// Default:0
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "是否最后一级节点", IsNullable = false, DefaultValue = "0")]
|
||
public bool IsLastNode {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:上级id
|
||
/// Default:0
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "上级id", IsNullable = false, DefaultValue = "0")]
|
||
public long ParentId {get;set;}
|
||
|
||
|
||
public DateTime CreateTime {get;set;}
|
||
|
||
public bool DeleteState {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:别名
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "别名", ColumnDataType = "nvarchar(50)", IsNullable = false)]
|
||
public string AliasName {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:是否公开
|
||
/// Default:0
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "是否公开", IsNullable = true, DefaultValue = "0")]
|
||
public bool? IsPublic {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:其他=-1,目录=0,课程=1,章=2,节=3
|
||
/// Default:-1
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "其他=-1,目录=0,课程=1,章=2,节=3", IsNullable = true, DefaultValue = "-1")]
|
||
public int? Types {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
|
||
public DateTime? UpdateTime {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:课程id(来源courseinfo)
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "课程id(来源courseinfo)", IsNullable = true)]
|
||
public long? CourseId {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:教材版本id(来源 textboox_versions)
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "教材版本id(来源 textboox_versions)", IsNullable = true)]
|
||
public long? VersionsId {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "", ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||
public string Code {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:根节点id
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "根节点id", IsNullable = true)]
|
||
public long? RootId {get;set;}
|
||
/// <summary>
|
||
/// 管理员id
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "管理员id", IsNullable = true)]
|
||
public long? AdminId { get; set; }
|
||
/// <summary>
|
||
/// 管理员角色id
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "管理员角色id", IsNullable = true)]
|
||
public long? AdminRoleId { get; set; }
|
||
|
||
}
|
||
}
|