111 lines
3.5 KiB
C#
111 lines
3.5 KiB
C#
using System;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using SqlSugar;
|
||
using VideoAnalysisCore.Interface;
|
||
|
||
namespace App.Model
|
||
{
|
||
///<summary>
|
||
///素材表
|
||
///</summary>
|
||
[SugarTable("Material")]
|
||
[Tenant("1002")]
|
||
public partial class Material
|
||
{
|
||
public Material()
|
||
{
|
||
|
||
this.TagId = Convert.ToInt64("0");
|
||
this.CreateTime = DateTime.Now;
|
||
this.DeleteState = false;
|
||
this.DownState = false;
|
||
}
|
||
|
||
[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 MaterialNo { get; set; }
|
||
|
||
/// <summary>
|
||
/// Desc:素材类型(1:视频;2: 文件;3:音频;4:图片;)
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "素材类型(1:视频;2: 文件;3:音频;4:图片;)", IsNullable = false)]
|
||
public int MaterialType { get; set; }
|
||
|
||
/// <summary>
|
||
/// Desc:标签Id
|
||
/// Default:0
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "素标签Id", IsNullable = false,DefaultValue ="0")]
|
||
public long TagId { get; set; }
|
||
|
||
/// <summary>
|
||
/// Desc:素材名称
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "素材名称", ColumnDataType = "nvarchar(500)", IsNullable = false)]
|
||
public string MaterialName { get; set; }
|
||
|
||
/// <summary>
|
||
/// Desc:附件id
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "附件id",IsNullable = false)]
|
||
public long AttachmentsId { get; set; }
|
||
|
||
/// <summary>
|
||
/// Desc:
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "内容", ColumnDataType = "nvarchar(max)", IsNullable = true)]
|
||
public string Desc { get; set; }
|
||
|
||
public DateTime CreateTime { get; set; }
|
||
|
||
public bool DeleteState { get; set; }
|
||
|
||
/// <summary>
|
||
/// 新增用户id
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "新增用户id")]
|
||
public long CreateUserId { get; set; }
|
||
|
||
/// <summary>
|
||
/// Desc:新增用户名称
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "新增用户名称",ColumnDataType = "nvarchar(50)")]
|
||
public string CreateUserName { get; set; }
|
||
|
||
[SugarColumn(ColumnDescription = "学校id",IsNullable =true)]
|
||
public long SchoolId { get; set; }
|
||
|
||
[SugarColumn(ColumnDescription = "学校名称", ColumnDataType = "nvarchar(50)", IsNullable = true)]
|
||
public string SchoolName { get; set; }
|
||
/// <summary>
|
||
/// 是否可以下载
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "是否可以下载", DefaultValue ="0")]
|
||
public bool DownState { get; set; }
|
||
/// <summary>
|
||
/// 新增用户角色id
|
||
/// </summary>
|
||
[SugarColumn(ColumnDescription = "新增用户角色id",IsNullable =true)]
|
||
public long AdminRoleId { get; set; }
|
||
}
|
||
}
|