26 lines
469 B
JavaScript
26 lines
469 B
JavaScript
'use strict';
|
|
|
|
const mongoose = require('mongoose');
|
|
const SystemSchema = new mongoose.Schema({
|
|
key: {
|
|
type: String,
|
|
required: true,
|
|
unique: true
|
|
},
|
|
value: {
|
|
type: {},
|
|
required: true
|
|
},
|
|
option: {
|
|
type: {}
|
|
},
|
|
}, {
|
|
timestamps: {
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
}
|
|
});
|
|
|
|
const systemSchema = mongoose.model('System', SystemSchema);
|
|
|
|
module.exports = systemSchema; |