37 lines
624 B
JavaScript
37 lines
624 B
JavaScript
|
const mongoose = require("mongoose");
|
||
|
const prefix = require("../config.json").prefix;
|
||
|
module.exports = mongoose.model(
|
||
|
"guild",
|
||
|
new mongoose.Schema({
|
||
|
Guild: String,
|
||
|
Prefix: {
|
||
|
type: String,
|
||
|
default: prefix,
|
||
|
},
|
||
|
Welcome: {
|
||
|
type: String,
|
||
|
default: "null",
|
||
|
},
|
||
|
Goodbye: {
|
||
|
type: String,
|
||
|
default: "null",
|
||
|
},
|
||
|
Log: {
|
||
|
type: String,
|
||
|
default: "null",
|
||
|
},
|
||
|
Premium: {
|
||
|
type: Boolean,
|
||
|
default: false,
|
||
|
},
|
||
|
Category: {
|
||
|
type: Array,
|
||
|
default: [],
|
||
|
},
|
||
|
Commands: {
|
||
|
type: Array,
|
||
|
default: [],
|
||
|
},
|
||
|
})
|
||
|
);
|