Added new db env management options

This commit is contained in:
2023-10-19 23:39:05 +02:00
parent ae690b02a6
commit 0efbdfb370
3 changed files with 270 additions and 195 deletions

View File

@@ -0,0 +1,9 @@
const { Schema, model } = require('mongoose');
const settingsSchema = new Schema({
_id: Schema.Types.ObjectId,
name: { type: String, required: true },
value: { type: String, required: true },
});
module.exports = model('settings', settingsSchema, 'settings');