UserTask.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using MTWorkHR.Core.Entities.Base;
  2. using MTWorkHR.Core.Global;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace MTWorkHR.Core.Entities
  10. {
  11. public class UserTask : FullAuditEntity, IHaveCompany
  12. {
  13. public long AssignedUserId { get; set; }
  14. [Filter]
  15. public string Title { get; set; }
  16. [Filter]
  17. public string Description { get; set; }
  18. public DateTime DueDate { get; set; }
  19. public PriorityEnum Priority { get; set; }
  20. public long ProjectId { get; set; }
  21. [ForeignKey("ProjectId")]
  22. public Project Project { get; set; }
  23. public long StatusId { get; set; }
  24. [ForeignKey("StatusId")]
  25. public UserTaskStatus TaskStatus { get; set; }
  26. public List<UserTaskAttachment> TaskAttachments { get; set; }
  27. public List<UserTaskHistory> UserTaskHistories { get; set; }
  28. public long CompanyId { get ; set ; }
  29. }
  30. }