Download database/models/mongodb/userDashBoard.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/database/models/mongodb/userDashBoard.js
- Command line
-
hf download hf://spaces/sweet2004/bot/database/models/mongodb/userDashBoard.js
-
curl -L -o userDashBoard.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/database/models/mongodb/userDashBoard.js
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); |