import mongoose from 'mongoose'

const siteContentSchema = new mongoose.Schema({
  key: { type: String, required: true, unique: true, index: true },
  title: { type: String, default: '' },
  body: { type: String, default: '' },
}, { timestamps: true })

export default mongoose.models.SiteContent || mongoose.model('SiteContent', siteContentSchema)
