server v1.0.9 (full featured)

This commit is contained in:
2020-10-04 17:24:05 +02:00
parent 3dbbe4b1ba
commit 782b404da1
8 changed files with 163 additions and 6 deletions

10
models/payments.js Normal file
View File

@@ -0,0 +1,10 @@
import mongoose from "mongoose";
const paymentSchema = mongoose.Schema({
_id: mongoose.Types.ObjectId,
restaurantId: mongoose.Types.ObjectId,
amount: Number,
months: Number,
});
export default mongoose.model("Payment", paymentSchema);