server v1.0.9 (full featured)
This commit is contained in:
10
models/payments.js
Normal file
10
models/payments.js
Normal 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);
|
||||
Reference in New Issue
Block a user