UserAttachment.cs 804 B

1234567891011121314151617181920212223242526272829
  1. using MTWorkHR.Core.Entities.Base;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace MTWorkHR.Infrastructure.Entities
  5. {
  6. public class UserAttachment : AuditEntity
  7. {
  8. public string UserId { get; set; }
  9. [ForeignKey("UserId")]
  10. public ApplicationUser User { 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. public byte[] Content { get; set; }
  17. [MaxLength(250)]
  18. public string OriginalName { get; set; }
  19. public string? FilePath { get; set; }
  20. public string? ContentType { get; set; }
  21. }
  22. }