import mongoose from 'mongoose';\n\nconst orderSchema = new mongoose.Schema({\n  userId: { type: String, required: true },\n  amount: { type: Number, required: true },\n  currency: { type: String, default: 'CNY' },\n  status: { type: String, default: 'pending' },\n  createdAt: { type: Date, default: Date.now },\n  updatedAt: { type: Date, default: Date.now },\n});\n\nexport const Order = mongoose.model('Order', orderSchema);