import mongoose from "mongoose";

const quoteRequestSchema = new mongoose.Schema(
  {
    customerName: { type: String, default: "" },
    service: { type: String, required: true, index: true },
    quantity: { type: String, default: "" },
    contact: { type: String, default: "" },
    notes: { type: String, default: "" },
    quotedAmount: { type: Number, default: 0 },
    invoiceNumber: { type: String, default: "" },
    status: {
      type: String,
      enum: ["New", "Contacted", "Quoted", "Paid", "Completed"],
      default: "New",
      index: true
    }
  },
  { timestamps: true }
);

export const QuoteRequest = mongoose.model("QuoteRequest", quoteRequestSchema);
