🏗 Added a scaffold for the settings service

This commit is contained in:
2021-11-09 12:42:10 -08:00
parent 734e6d1a03
commit a952a7e528
3 changed files with 74 additions and 1 deletions

22
models/settings.model.ts Normal file
View File

@@ -0,0 +1,22 @@
const mongoose = require("mongoose");
const paginate = require("mongoose-paginate-v2");
const SettingsScehma = mongoose.Schema({
directConnect: {
client: {
name: String,
version: String,
hostname: String,
port: Number,
https: Boolean,
username: String,
password: String,
hubs: [{
}]
}
}
})
const Settings = mongoose.model("Settings", SettingsScehma);
export default Settings;