This commit is contained in:
chaosBreaking
2019-08-31 14:59:13 +08:00
commit dc5423d356
65 changed files with 3813 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
'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;