namespace PowderCoating.Core.Entities
{
    /// <summary>
    /// Stores the result of the most recent AI catalog price check run for a company.
    /// ResultsJson holds the full per-item verdict array serialized as JSON, avoiding the
    /// need for a wide per-item table while still persisting the report across sessions.
    /// Only one report is kept per company — each new run overwrites the previous one.
    /// </summary>
    public class CatalogPriceCheckReport : BaseEntity
    {
        public DateTime RunAt { get; set; }
        public int ItemsChecked { get; set; }

        /// <summary>JSON-serialized List&lt;CatalogItemPriceVerdict&gt;.</summary>
        public string ResultsJson { get; set; } = "[]";

        /// <summary>Human-readable summary of the operating costs used for this run.</summary>
        public string OperatingCostsSummary { get; set; } = string.Empty;
    }
}
