Download api/models/schema/categories.js from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/categories.js
- Command line
-
hf download hf://spaces/Zhitomir/chat/api/models/schema/categories.js
-
curl -L -o categories.js https://huggingface.co/spaces/Zhitomir/chat/resolve/main/api/models/schema/categories.js
371 Bytes
| const mongoose = require('mongoose'); | |
| const Schema = mongoose.Schema; | |
| const categoriesSchema = new Schema({ | |
| label: { | |
| type: String, | |
| required: true, | |
| unique: true, | |
| }, | |
| value: { | |
| type: String, | |
| required: true, | |
| unique: true, | |
| }, | |
| }); | |
| const categories = mongoose.model('categories', categoriesSchema); | |
| module.exports = { Categories: categories }; | |