SysFile.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
  2. //
  3. // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
  4. //
  5. // 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
  6. namespace Admin.NET.Core;
  7. /// <summary>
  8. /// 系统文件表
  9. /// </summary>
  10. [SugarTable(null, "系统文件表")]
  11. [SysTable]
  12. [SugarIndex("index_{table}_F", nameof(FileName), OrderByType.Asc)]
  13. public partial class SysFile : EntityBase
  14. {
  15. /// <summary>
  16. /// 提供者
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "提供者", Length = 128)]
  19. [MaxLength(128)]
  20. public string? Provider { get; set; }
  21. /// <summary>
  22. /// 仓储名称
  23. /// </summary>
  24. [SugarColumn(ColumnDescription = "仓储名称", Length = 128)]
  25. [MaxLength(128)]
  26. public string? BucketName { get; set; }
  27. /// <summary>
  28. /// 文件名称(源文件名)
  29. /// </summary>
  30. [SugarColumn(ColumnDescription = "文件名称", Length = 128)]
  31. [MaxLength(128)]
  32. public string? FileName { get; set; }
  33. /// <summary>
  34. /// 文件后缀
  35. /// </summary>
  36. [SugarColumn(ColumnDescription = "文件后缀", Length = 16)]
  37. [MaxLength(16)]
  38. public string? Suffix { get; set; }
  39. /// <summary>
  40. /// 存储路径
  41. /// </summary>
  42. [SugarColumn(ColumnDescription = "存储路径", Length = 128)]
  43. [MaxLength(128)]
  44. public string? FilePath { get; set; }
  45. /// <summary>
  46. /// 文件大小KB
  47. /// </summary>
  48. [SugarColumn(ColumnDescription = "文件大小KB", Length = 16)]
  49. [MaxLength(16)]
  50. public string? SizeKb { get; set; }
  51. /// <summary>
  52. /// 文件大小信息-计算后的
  53. /// </summary>
  54. [SugarColumn(ColumnDescription = "文件大小信息", Length = 64)]
  55. [MaxLength(64)]
  56. public string? SizeInfo { get; set; }
  57. /// <summary>
  58. /// 外链地址-OSS上传后生成外链地址方便前端预览
  59. /// </summary>
  60. [SugarColumn(ColumnDescription = "外链地址", Length = 512)]
  61. [MaxLength(512)]
  62. public string? Url { get; set; }
  63. /// <summary>
  64. /// 文件MD5
  65. /// </summary>
  66. [SugarColumn(ColumnDescription = "文件MD5", Length = 128)]
  67. [MaxLength(128)]
  68. public string? FileMd5 { get; set; }
  69. }