平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
2.2 KiB

  1. namespace SafeCampus.System;
  2. /// <summary>
  3. /// 文件表
  4. ///</summary>
  5. [SugarTable("sys_file", TableDescription = "文件表")]
  6. [Tenant(SqlSugarConst.DB_DEFAULT)]
  7. [IgnoreInitTable]
  8. public class SysFile : DataEntityBase
  9. {
  10. /// <summary>
  11. /// 存储引擎
  12. ///</summary>
  13. [SugarColumn(ColumnName = "Engine", ColumnDescription = "存储引擎", Length = 200)]
  14. public string Engine { get; set; }
  15. /// <summary>
  16. /// 存储桶
  17. ///</summary>
  18. [SugarColumn(ColumnName = "Bucket", ColumnDescription = "存储桶", Length = 200)]
  19. public string Bucket { get; set; }
  20. /// <summary>
  21. /// 文件名称
  22. ///</summary>
  23. [SugarColumn(ColumnName = "Name", ColumnDescription = "文件名称")]
  24. public string Name { get; set; }
  25. /// <summary>
  26. /// 文件后缀
  27. ///</summary>
  28. [SugarColumn(ColumnName = "Suffix", ColumnDescription = "文件后缀", Length = 200)]
  29. public string Suffix { get; set; }
  30. /// <summary>
  31. /// 文件大小kb
  32. ///</summary>
  33. [SugarColumn(ColumnName = "SizeKb", ColumnDescription = "文件大小kb")]
  34. public long SizeKb { get; set; }
  35. /// <summary>
  36. /// 文件大小(格式化后)
  37. ///</summary>
  38. [SugarColumn(ColumnName = "SizeInfo", ColumnDescription = "文件大小(格式化后)", Length = 200)]
  39. public string SizeInfo { get; set; }
  40. /// <summary>
  41. /// 文件的对象名(唯一名称)
  42. ///</summary>
  43. [SugarColumn(ColumnName = "ObjName", ColumnDescription = "文件的对象名(唯一名称)")]
  44. public string ObjName { get; set; }
  45. /// <summary>
  46. /// 文件存储路径
  47. ///</summary>
  48. [SugarColumn(ColumnName = "StoragePath", ColumnDescription = "文件存储路径")]
  49. public string StoragePath { get; set; }
  50. /// <summary>
  51. /// 文件下载路径
  52. ///</summary>
  53. [SugarColumn(ColumnName = "DownloadPath", ColumnDescription = "文件下载路径", IsNullable = true)]
  54. public string DownloadPath { get; set; }
  55. /// <summary>
  56. /// 图片缩略图
  57. ///</summary>
  58. [SugarColumn(ColumnName = "Thumbnail", ColumnDescription = "图片缩略图", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
  59. public string Thumbnail { get; set; }
  60. }