New SiteContent.
This commit is contained in:
parent
02222a5c16
commit
7e7672d52b
5 changed files with 285 additions and 0 deletions
9
server/models/siteContent.js
Normal file
9
server/models/siteContent.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue