using System.Text.Json;

namespace NexusRMM.Core.Models;

public class TaskItem
{
    public Guid Id { get; set; }
    public Guid AgentId { get; set; }
    public TaskType Type { get; set; }
    public JsonElement? Payload { get; set; }
    public TaskStatus Status { get; set; } = TaskStatus.Pending;
    public JsonElement? Result { get; set; }
    public DateTime CreatedAt { get; set; }
    public DateTime? CompletedAt { get; set; }

    public Agent Agent { get; set; } = null!;
}
