ChatAttachment.cs 732 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Microsoft.VisualBasic.FileIO;
  9. using MTWorkHR.Core.Entities.Base;
  10. namespace MTWorkHR.Core.Entities
  11. {
  12. public class ChatAttachment: AuditEntity
  13. {
  14. public long ChatMessageId{ get; set; }
  15. [ForeignKey("ChatMessageId")]
  16. public ChatMessage ChatMessage { get; set; }
  17. [MaxLength(250)]
  18. public string? FileName { get; set; }
  19. public string FilePath { get; set; }
  20. public string FileType { get; set; }
  21. public string? ContentType { get; set; }
  22. }
  23. }