Spaces:
Sleeping
Sleeping
Download models/Server.js from arifian853/mc-server: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/spaces/arifian853/mc-server/resolve/main/models/Server.js
- Command line
-
hf download hf://spaces/arifian853/mc-server/models/Server.js
-
curl -L -o Server.js https://huggingface.co/spaces/arifian853/mc-server/resolve/main/models/Server.js
524 Bytes
| const mongoose = require('mongoose'); | |
| const serverSchema = new mongoose.Schema({ | |
| name: { | |
| type: String, | |
| required: true, | |
| trim: true | |
| }, | |
| address: { | |
| type: String, | |
| required: true, | |
| trim: true | |
| }, | |
| description: { | |
| type: String, | |
| trim: true | |
| }, | |
| activePlayers: [{ | |
| type: mongoose.Schema.Types.ObjectId, | |
| ref: 'Player' | |
| }], | |
| createdBy: { | |
| type: mongoose.Schema.Types.ObjectId, | |
| ref: 'User' | |
| } | |
| }, { | |
| timestamps: true | |
| }); | |
| module.exports = mongoose.model('Server', serverSchema); |