UserTask.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 string 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> TaskHistories { get; set; }
  28. public List<TaskUser>? TaskUsers { get; set; }
  29. public long CompanyId { get ; set ; }
  30. }
  31. }