bot / database /models /mongodb /userDashBoard.js
sweet2004's picture
Upload 5577 files
80ce16c verified
Raw History Blame Contribute Delete
358 Bytes
const mongoose = require("mongoose");
const { Schema } = mongoose;
const userModel = new Schema({
email: String,
name: String,
password: String,
facebookUserID: {
type: String,
default: ""
},
isAdmin: {
type: Boolean,
default: false
}
}, {
timestamps: true,
minimize: false
});
module.exports = mongoose.model("usersDashboard", userModel);