using CsvHelper.Configuration.Attributes;

namespace PowderCoating.Application.DTOs.Import;

/// <summary>
/// DTO for importing maintenance records from CSV files.
/// </summary>
public class MaintenanceImportDto
{
    [Name("EquipmentName")]
    public string EquipmentName { get; set; } = string.Empty;

    [Name("MaintenanceType")]
    public string MaintenanceType { get; set; } = string.Empty;

    [Name("ScheduledDate")]
    public DateTime ScheduledDate { get; set; }

    [Name("CompletedDate")]
    public DateTime? CompletedDate { get; set; }

    [Name("Status")]
    public string Status { get; set; } = "Scheduled";

    [Name("Priority")]
    public string Priority { get; set; } = "Normal";

    [Name("LaborCost")]
    public decimal? LaborCost { get; set; }

    [Name("PartsCost")]
    public decimal? PartsCost { get; set; }

    [Name("TotalCost")]
    public decimal? TotalCost { get; set; }

    [Name("Description")]
    public string Description { get; set; } = string.Empty;

    [Name("WorkPerformed")]
    public string? WorkPerformed { get; set; }

    [Name("Notes")]
    public string? Notes { get; set; }
}
