const mongoose = require('mongoose'); const settingsSchema = new mongoose.Schema({ key: { type: String, default: 'global', unique: true }, storeAddress: { type: String, default: '' }, mapEmbedUrl: { type: String, default: '' }, adminPassword: { type: String, default: 'admin' } }, { timestamps: true }); module.exports = mongoose.model('Settings', settingsSchema);