Download server/models/User.js from eznd/bao: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/eznd/bao/resolve/main/server/models/User.js
- Command line
-
hf download hf://spaces/eznd/bao/server/models/User.js
-
curl -L -o User.js https://huggingface.co/spaces/eznd/bao/resolve/main/server/models/User.js
347 Bytes
| const mongoose = require('mongoose'); | |
| const userSchema = new mongoose.Schema({ | |
| username: { | |
| type: String, required: true, unique: true, | |
| lowercase: true, trim: true, minlength: 3, maxlength: 24 | |
| }, | |
| pinHash: { type: String, required: true }, | |
| }, { timestamps: true }); | |
| module.exports = mongoose.model('User', userSchema); | |