using System;
using System.Linq;
using System.Text;
using SqlSugar;
using VideoAnalysisCore.Interface;
namespace App.Model
{
///
///文件附件
///
[SugarTable("Attachments")]
[Tenant("1002")]
public partial class Attachments
{
public Attachments()
{
this.SchoolId = Convert.ToInt64("0");
this.Sort = Convert.ToInt32("0");
this.CreateTime = DateTime.Now;
this.DeleteState = false;
}
///
/// Desc:
/// Default:
/// Nullable:False
///
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
///
/// Desc:关联对象类型(枚举)
/// Default:
/// Nullable:False
///
public int ObjType { get; set; }
///
/// Desc:文件名称
/// Default:
/// Nullable:False
///
[SugarColumn(Length = 500)]
public string Name { get; set; }
///
/// Desc:自定义名称
/// Default:
/// Nullable:True
///
[SugarColumn(IsNullable = true, Length = 200)]
public string CustomName { get; set; }
///
/// Desc:文件类型
/// Default:
/// Nullable:False
///
[SugarColumn(Length = 100)]
public string Type { get; set; }
///
/// Desc:链接
/// Default:
/// Nullable:False
///
[SugarColumn(Length = 255)]
public string Url { get; set; }
///
/// Desc:扩展名
/// Default:
/// Nullable:False
///
[SugarColumn(Length = 20)]
public string Extension { get; set; }
///
/// Desc:文件大小(KB)
/// Default:
/// Nullable:False
///
[SugarColumn(Length = 11, DecimalDigits = 2)]
public decimal Size { get; set; }
///
/// Desc:学校
/// Default:0
/// Nullable:True
///
[SugarColumn(IsNullable = true)]
public long? SchoolId { get; set; }
///
/// Desc:时长
/// Default:
/// Nullable:True
///
[SugarColumn(IsNullable = true, Length = 10, DecimalDigits = 2)]
public decimal? Duration { get; set; }
///
/// Desc:排序
/// Default:0
/// Nullable:True
///
[SugarColumn(IsNullable = true)]
public int? Sort { get; set; }
///
/// Desc:视频码
/// Default:
/// Nullable:True
///
[SugarColumn(IsNullable = true)]
public string VideoCode { get; set; }
///
/// Desc:年级
/// Default:
/// Nullable:True
///
[SugarColumn(IsNullable = true)]
public string GradeName { get; set; }
///
/// Desc:科目
/// Default:
/// Nullable:True
///
[SugarColumn(IsNullable = true)]
public string SubjectName { get; set; }
///
/// Desc:班级
/// Default:
/// Nullable:True
///
[SugarColumn(IsNullable = true)]
public string ClassName { get; set; }
///
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:False
///
public DateTime CreateTime { get; set; }
///
/// Desc:
/// Default:0
/// Nullable:False
///
public bool DeleteState { get; set; }
///
/// 转换后的图片数量
///
[SugarColumn(IsNullable = true)]
public int ConvertPageCount { get; set; }
///
/// 文件所属类型
///
[SugarColumn(IsNullable = true, DefaultValue = "0")]
public int DataType { get; set; }
[SugarColumn(IsIgnore = true)]
public string DataTypeName { get; set; }
[SugarColumn(ColumnDescription = "新增用户id", IsNullable = true)]
public long AdminId { get; set; }
[SugarColumn(ColumnDescription = "新增用户角色id", IsNullable = true)]
public long AdminRoleId { get; set; }
}
}