init
This commit is contained in:
26
src/modules/system/system.model.js
Normal file
26
src/modules/system/system.model.js
Normal 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;
|
||||
Reference in New Issue
Block a user