Download database/models/mongodb/global.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/database/models/mongodb/global.js
- Command line
-
hf download hf://spaces/sweet2004/bot/database/models/mongodb/global.js
-
curl -L -o global.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/database/models/mongodb/global.js
284 Bytes
| const mongoose = require("mongoose"); | |
| const { Schema } = mongoose; | |
| const userModel = new Schema({ | |
| key: { | |
| type: String, | |
| unique: true | |
| }, | |
| data: { | |
| type: Object, | |
| default: {} | |
| } | |
| }, { | |
| timestamps: true, | |
| minimize: false | |
| }); | |
| module.exports = mongoose.model("globals", userModel); |