import mongoose from "mongoose";

const CakeOrderSchema = new mongoose.Schema(
  {
    order: {
      type: Object,
      required: true,
      // Example format:
      // {
      //   "Mini Cakes": { "Thandai Cake": 1, "Mango Cardamom": 1 },
      //   "Mithai-Inspired Macarons": { "Mango macarons (pack of 6)": 1, "Pista (pack of 6)": 10 }
      // }
    },
  },
  { timestamps: true }
);

export const CakeOrder = mongoose.model("CakeOrder", CakeOrderSchema);
