22 lines
526 B
TypeScript
22 lines
526 B
TypeScript
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; |