dyno-bot/Dyno-datafactory-develop/models/Dyno.js

20 lines
644 B
JavaScript
Raw Permalink Normal View History

2020-09-12 20:08:48 +02:00
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const dynoSchema = new Schema({
prefix: { type: String, default: '?' },
modules: { type: Object, default: {} },
commands: { type: Object, default: {} },
webhooks: { type: Array, default: [] },
testGuilds: { type: Array, default: [] },
betaGuilds: { type: Array, default: [] },
dashAccess: { type: Array, default: [] },
raidAccounts: { type: Array, default: [] },
globalBans: { type: Array, default: [] },
ignoredUsers: { type: Array, default: [] },
}, { strict: false });
module.exports = { name: 'Dyno', schema: dynoSchema }