namespace SafeCampus.System; /// /// 文件表 /// [SugarTable("sys_file", TableDescription = "文件表")] [Tenant(SqlSugarConst.DB_DEFAULT)] [IgnoreInitTable] public class SysFile : DataEntityBase { /// /// 存储引擎 /// [SugarColumn(ColumnName = "Engine", ColumnDescription = "存储引擎", Length = 200)] public string Engine { get; set; } /// /// 存储桶 /// [SugarColumn(ColumnName = "Bucket", ColumnDescription = "存储桶", Length = 200)] public string Bucket { get; set; } /// /// 文件名称 /// [SugarColumn(ColumnName = "Name", ColumnDescription = "文件名称")] public string Name { get; set; } /// /// 文件后缀 /// [SugarColumn(ColumnName = "Suffix", ColumnDescription = "文件后缀", Length = 200)] public string Suffix { get; set; } /// /// 文件大小kb /// [SugarColumn(ColumnName = "SizeKb", ColumnDescription = "文件大小kb")] public long SizeKb { get; set; } /// /// 文件大小(格式化后) /// [SugarColumn(ColumnName = "SizeInfo", ColumnDescription = "文件大小(格式化后)", Length = 200)] public string SizeInfo { get; set; } /// /// 文件的对象名(唯一名称) /// [SugarColumn(ColumnName = "ObjName", ColumnDescription = "文件的对象名(唯一名称)")] public string ObjName { get; set; } /// /// 文件存储路径 /// [SugarColumn(ColumnName = "StoragePath", ColumnDescription = "文件存储路径")] public string StoragePath { get; set; } /// /// 文件下载路径 /// [SugarColumn(ColumnName = "DownloadPath", ColumnDescription = "文件下载路径", IsNullable = true)] public string DownloadPath { get; set; } /// /// 图片缩略图 /// [SugarColumn(ColumnName = "Thumbnail", ColumnDescription = "图片缩略图", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)] public string Thumbnail { get; set; } }