using CsvHelper.Configuration.Attributes;

namespace PowderCoating.Application.DTOs.Import;

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

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

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

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

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

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

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

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

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

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

    [Name("RecommendedMaintenanceIntervalDays")]
    public int? RecommendedMaintenanceIntervalDays { get; set; }

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

    [Name("IsActive")]
    public bool? IsActive { get; set; }

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