Spaces:
Configuration error
Configuration error
Download src/models/Settings.js from sdsdsd55415/pcstore: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/sdsdsd55415/pcstore/resolve/main/src/models/Settings.js
- Command line
-
hf download hf://spaces/sdsdsd55415/pcstore/src/models/Settings.js
-
curl -L -o Settings.js https://huggingface.co/spaces/sdsdsd55415/pcstore/resolve/main/src/models/Settings.js
420 Bytes
| const mongoose = require('mongoose'); | |
| const settingsSchema = new mongoose.Schema({ | |
| key: { type: String, required: true, unique: true }, // e.g., 'store_location' | |
| value: { type: mongoose.Schema.Types.Mixed, required: true }, // e.g., { latitude: 123, longitude: 456, text: "Address..." } | |
| updatedAt: { type: Date, default: Date.now } | |
| }); | |
| module.exports = mongoose.model('Settings', settingsSchema); | |