using ERPCore.Domain.Enums;

namespace ERPCore.Domain.Entities;

/// <summary>
/// Request for Quotation header (FR-PROC-02) raised from a requisition. Vendor
/// quotations attach for comparison. Model: docs/10 Part C.2.
/// </summary>
public class Rfq
{
    public int RfqId { get; set; }
    public string DocNo { get; set; } = string.Empty;

    public int RequisitionId { get; set; }
    public Requisition? Requisition { get; set; }

    public RfqStatus Status { get; set; } = RfqStatus.Open;
    public DateTime CreatedAt { get; set; }

    public ICollection<RfqLine> Lines { get; set; } = new List<RfqLine>();
    public ICollection<VendorQuotation> Quotations { get; set; } = new List<VendorQuotation>();
}
