const mongoose = require('mongoose'); const inspirationSchema = new mongoose.Schema( { title: { type: String, required: true }, description: { type: String }, image: { type: String, required: true }, linkedColours: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Colour' }], linkedProducts: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Product' }], inspirationCollection: { type: String }, displayOrder: { type: Number, default: 0 }, }, { timestamps: true } ); module.exports = mongoose.model('Inspiration', inspirationSchema);