Download server/models/Profile.js from eznd/bao: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/eznd/bao/resolve/main/server/models/Profile.js
- Command line
-
hf download hf://spaces/eznd/bao/server/models/Profile.js
-
curl -L -o Profile.js https://huggingface.co/spaces/eznd/bao/resolve/main/server/models/Profile.js
478 Bytes
| const mongoose = require('mongoose'); | |
| const profileSchema = new mongoose.Schema({ | |
| userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true }, | |
| displayName: { type: String, required: true }, | |
| wins: { type: Number, default: 0 }, | |
| losses: { type: Number, default: 0 }, | |
| gamesPlayed: { type: Number, default: 0 }, | |
| isBot: { type: Boolean, default: false }, | |
| }, { timestamps: true }); | |
| module.exports = mongoose.model('Profile', profileSchema); | |