SysAttach.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities;
  4. using Abp.Domain.Entities.Auditing;
  5. using VberZero.BaseSystem.Users;
  6. namespace VberZero.BaseSystem;
  7. [Table("Sys_Attaches")]
  8. public class SysAttach : CreationAuditedEntity<int, User>, IMayHaveTenant
  9. {
  10. public const int CodeKeyMaxLength = 100;
  11. public const int SourceKeyMaxLength = 100;
  12. public const int FileTitleMaxLength = 200;
  13. public const int FileNameMaxLength = 200;
  14. public const int FilePathMaxLength = 1000;
  15. public const int FileExtMaxLength = 10;
  16. public const int DescriptionMaxLength = 500;
  17. [MaxLength(CodeKeyMaxLength)]
  18. public string CodeKey { get; set; }
  19. [MaxLength(SourceKeyMaxLength)]
  20. public string SourceKey { get; set; }
  21. [MaxLength(FileTitleMaxLength)]
  22. public string FileTitle { get; set; }
  23. [MaxLength(FileNameMaxLength)]
  24. public string FileName { get; set; }
  25. [MaxLength(FilePathMaxLength)]
  26. public string FilePath { get; set; }
  27. public int FileType { get; set; }
  28. [MaxLength(FileExtMaxLength)]
  29. public string FileExt { get; set; }
  30. [MaxLength(DescriptionMaxLength)]
  31. public string Description { get; set; }
  32. public int? TenantId { get; set; }
  33. }