183 lines
4.7 KiB
C#
183 lines
4.7 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using SqlSugar;
|
|
using VideoAnalysisCore.Interface;
|
|
|
|
namespace App.Model
|
|
{
|
|
///<summary>
|
|
///文件附件
|
|
///</summary>
|
|
[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;
|
|
|
|
}
|
|
/// <summary>
|
|
/// Desc:
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:关联对象类型(枚举)
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int ObjType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:文件名称
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
[SugarColumn(Length = 500)]
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:自定义名称
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, Length = 200)]
|
|
public string CustomName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:文件类型
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
[SugarColumn(Length = 100)]
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:链接
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
[SugarColumn(Length = 255)]
|
|
public string Url { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:扩展名
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
[SugarColumn(Length = 20)]
|
|
public string Extension { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:文件大小(KB)
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
[SugarColumn(Length = 11, DecimalDigits = 2)]
|
|
public decimal Size { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:学校
|
|
/// Default:0
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public long? SchoolId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:时长
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true, Length = 10, DecimalDigits = 2)]
|
|
public decimal? Duration { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:排序
|
|
/// Default:0
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public int? Sort { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:视频码
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string VideoCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:年级
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string GradeName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:科目
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string SubjectName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:班级
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string ClassName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:创建时间
|
|
/// Default:DateTime.Now
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Desc:
|
|
/// Default:0
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public bool DeleteState { get; set; }
|
|
/// <summary>
|
|
/// 转换后的图片数量
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public int ConvertPageCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 文件所属类型
|
|
/// </summary>
|
|
[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; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|