mirror of https://github.com/requarks/wiki
parent
8a836719a2
commit
c863059a53
@ -0,0 +1,22 @@
|
||||
'use strict'
|
||||
|
||||
const Mongoose = require('mongoose')
|
||||
|
||||
/**
|
||||
* Settings schema
|
||||
*
|
||||
* @type {<Mongoose.Schema>}
|
||||
*/
|
||||
var settingSchema = Mongoose.Schema({
|
||||
key: {
|
||||
type: String,
|
||||
required: true,
|
||||
index: true
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
}, { timestamps: {} })
|
||||
|
||||
module.exports = Mongoose.model('Setting', settingSchema)
|
Loading…
Reference in new issue