using Brizco.Domain.Entities.User;

namespace Brizco.Domain.Entities.Task;

[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
public class TaskUser : ApiEntity
{
    public TaskUser()
    {
        
    }

    public TaskUser(Guid userId,Guid taskId)
    {
        UserId = userId;
        TaskId = taskId;
    }
    public Guid UserId { get; internal set; }
    public virtual ApplicationUser? User { get; internal set; }
    public Guid TaskId { get; internal set; }
    public virtual Task? Task { get; internal set; }
}