Spaces:
Configuration error
Configuration error
Download src/models/Banner.js from sdsdsd55415/pcstore: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/sdsdsd55415/pcstore/resolve/main/src/models/Banner.js
- Command line
-
hf download hf://spaces/sdsdsd55415/pcstore/src/models/Banner.js
-
curl -L -o Banner.js https://huggingface.co/spaces/sdsdsd55415/pcstore/resolve/main/src/models/Banner.js
483 Bytes
| const mongoose = require('mongoose'); | |
| const bannerSchema = new mongoose.Schema({ | |
| id: { type: String, required: true, unique: true }, | |
| title: { type: String, required: true }, | |
| image_url: { type: String }, // External URL or empty | |
| file_id: { type: String }, // Telegram File ID | |
| color: { type: String }, // Hex color (optional fallback) | |
| createdAt: { type: Date, default: Date.now } | |
| }); | |
| module.exports = mongoose.model('Banner', bannerSchema); | |