namespace ERPCore.Domain.Entities;

/// <summary>
/// A vendor's quotation against an RFQ (FR-PROC-02). Per-item pricing lives in
/// <see cref="Lines"/>.
/// <para>
/// Deviation note: docs/10 Part C.2 models <c>VENDOR_QUOTATION</c> with scalar
/// <c>unit_price</c>/<c>lead_days</c> and no item reference, which cannot represent
/// the per-line pricing the API contract requires (docs/11 §3.2). This header +
/// <see cref="VendorQuotationLine"/> split follows the authoritative API shape.
/// </para>
/// </summary>
public class VendorQuotation
{
    public int QuotationId { get; set; }

    public int RfqId { get; set; }
    public Rfq? Rfq { get; set; }

    public int VendorId { get; set; }
    public Vendor? Vendor { get; set; }

    public DateTime CreatedAt { get; set; }

    public ICollection<VendorQuotationLine> Lines { get; set; } = new List<VendorQuotationLine>();
}
