diff --git a/models/payments.js b/models/payments.js new file mode 100644 index 0000000..cc7c40a --- /dev/null +++ b/models/payments.js @@ -0,0 +1,10 @@ +const mongoose = require("mongoose"); + +const paymentSchema = mongoose.Schema({ + _id: mongoose.Types.ObjectId, + restaurantId: mongoose.Types.ObjectId, + amount: Number, + months: Number, +}); + +module.exorts = mongoose.model("Payment", paymentSchema); \ No newline at end of file