text: import mongoose from 'mongoose'
  
  const orderSchema = mongoose.Schema(
    {
      
      orderItems: [
        {
          name: { type: String, required: true },
          qty: { type: Number, required: true },
          price: { type: Number, required: true },
          product: {
            type: mongoose.Schema.Types.ObjectId,
            required: true,
            ref: 'Product',
          },
        },
      ],
      totalPrice: {
        type: Number,
        required: true,
        default: 0.0,
      }
    },
    {
      timestamps: true,
    }
  )
  
  const Order = mongoose.model('Order', orderSchema)
  
  export default Order