TeamUser.cs 619 B

12345678910111213141516171819202122232425
  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 MTWorkHR.Core.Entities.Base;
  9. namespace MTWorkHR.Core.Entities
  10. {
  11. public class TeamUser : AuditEntity
  12. {
  13. public long TeamId{ get; set; }
  14. [ForeignKey("TeamId")]
  15. public Team? Team { get; set; }
  16. [Required]
  17. public string AssignedUserId { get; set; }
  18. public string AssignedUserName { get; set; }
  19. public bool IsAdmin { get; set; }
  20. }
  21. }