SysFile.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证。
  2. //
  3. // 必须在法律法规允许的范围内正确使用,严禁将其用于非法、欺诈、恶意或侵犯他人合法权益的目的。
  4. namespace Admin.NET.Core;
  5. /// <summary>
  6. /// 系统文件表
  7. /// </summary>
  8. [SugarTable(null, "系统文件表")]
  9. [SysTable]
  10. [SugarIndex("index_{table}_F", nameof(FileName), OrderByType.Asc)]
  11. public partial class SysFile : EntityBase
  12. {
  13. /// <summary>
  14. /// 提供者
  15. /// </summary>
  16. [SugarColumn(ColumnDescription = "提供者", Length = 128)]
  17. [MaxLength(128)]
  18. public string? Provider { get; set; }
  19. /// <summary>
  20. /// 仓储名称
  21. /// </summary>
  22. [SugarColumn(ColumnDescription = "仓储名称", Length = 128)]
  23. [MaxLength(128)]
  24. public string? BucketName { get; set; }
  25. /// <summary>
  26. /// 文件名称(源文件名)
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "文件名称", Length = 128)]
  29. [MaxLength(128)]
  30. public string? FileName { get; set; }
  31. /// <summary>
  32. /// 文件后缀
  33. /// </summary>
  34. [SugarColumn(ColumnDescription = "文件后缀", Length = 16)]
  35. [MaxLength(16)]
  36. public string? Suffix { get; set; }
  37. /// <summary>
  38. /// 存储路径
  39. /// </summary>
  40. [SugarColumn(ColumnDescription = "存储路径", Length = 128)]
  41. [MaxLength(128)]
  42. public string? FilePath { get; set; }
  43. /// <summary>
  44. /// 文件大小KB
  45. /// </summary>
  46. [SugarColumn(ColumnDescription = "文件大小KB", Length = 16)]
  47. [MaxLength(16)]
  48. public string? SizeKb { get; set; }
  49. /// <summary>
  50. /// 文件大小信息-计算后的
  51. /// </summary>
  52. [SugarColumn(ColumnDescription = "文件大小信息", Length = 64)]
  53. [MaxLength(64)]
  54. public string? SizeInfo { get; set; }
  55. /// <summary>
  56. /// 外链地址-OSS上传后生成外链地址方便前端预览
  57. /// </summary>
  58. [SugarColumn(ColumnDescription = "外链地址", Length = 512)]
  59. [MaxLength(512)]
  60. public string? Url { get; set; }
  61. /// <summary>
  62. /// 文件MD5
  63. /// </summary>
  64. [SugarColumn(ColumnDescription = "文件MD5", Length = 128)]
  65. [MaxLength(128)]
  66. public string? FileMd5 { get; set; }
  67. }