Initial Commit
This commit is contained in:
11
models/users.js
Normal file
11
models/users.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const userSchema = mongoose.Schema({
|
||||
id: mongoose.Types.ObjectId,
|
||||
email: String,
|
||||
password: String,
|
||||
restaurantId: mongoose.Types.ObjectId,
|
||||
subscriptionActive: Boolean,
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("User", userSchema);
|
||||
Reference in New Issue
Block a user