Spaces:
Sleeping
Sleeping
Download Database/models/vegitables.js from abubasith86/hayat: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/abubasith86/hayat/resolve/main/Database/models/vegitables.js
- Command line
-
hf download hf://spaces/abubasith86/hayat/Database/models/vegitables.js
-
curl -L -o vegitables.js https://huggingface.co/spaces/abubasith86/hayat/resolve/main/Database/models/vegitables.js
431 Bytes
| var mongoose = require('mongoose'); | |
| const vegetablesSchema = mongoose.Schema({ | |
| _id: mongoose.Schema.Types.ObjectId, | |
| name: { | |
| type: String, | |
| }, | |
| price: { | |
| type: Number, | |
| }, | |
| description: { | |
| type: String, | |
| }, | |
| image: { | |
| type: String, | |
| }, | |
| isLiked: { | |
| type: Boolean, | |
| default: false, | |
| } | |
| }); | |
| module.exports = mongoose.model('Vegetables', vegetablesSchema); |