re added payments.js

This commit is contained in:
2020-12-12 15:40:30 +01:00
parent 976f93588d
commit 3b96af894e

10
models/payments.js Normal file
View File

@@ -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);