import mongoose from 'mongoose';\n\nconst payTradeSchema = new mongoose.Schema({\n  orderId: { type: mongoose.Schema.Types.ObjectId, ref: 'Order', required: true },\n  gateway: { type: String, required: true },\n  transactionId: String,\n  status: { type: String, default: 'initiated' },\n  response: Object,\n  createdAt: { type: Date, default: Date.now },\n  updatedAt: { type: Date, default: Date.now },\n});\n\nexport const PayTrade = mongoose.model('PayTrade', payTradeSchema);