ContractTaskAttachment.cs 825 B

123456789101112131415161718192021222324252627282930
  1. using MTWorkHR.Core.Entities.Base;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace MTWorkHR.Core.Entities
  5. {
  6. public class ContractTaskAttachment : AuditEntity
  7. {
  8. public long ContractTaskId { get; set; }
  9. [ForeignKey("ContractTaskId")]
  10. public ContractTask ContractTask { get; set; }
  11. public long? AttachmentTypeId { get; set; }
  12. [ForeignKey("AttachmentTypeId")]
  13. public AttachmentType AttachmentType { get; set; }
  14. [MaxLength(250)]
  15. public string? FileName { get; set; }
  16. [MaxLength(250)]
  17. public string? OriginalName { get; set; }
  18. public byte[] Content { get; set; }
  19. public string? FilePath { get; set; }
  20. public string? ContentType { get; set; }
  21. }
  22. }