guilds.js (517B)
1 const mongoose = require("mongoose"); 2 const prefix = require("../config").prefix; 3 module.exports = mongoose.model( 4 "guild", 5 new mongoose.Schema({ 6 Guild: String, 7 Prefix: { 8 type: String, 9 default: prefix, 10 }, 11 Premium: { 12 type: Boolean, 13 default: false, 14 }, 15 Category: { 16 type: Array, 17 default: [], 18 }, 19 Commands: { 20 type: Array, 21 default: [], 22 }, 23 Tips: { 24 type: Boolean, 25 default: true, 26 }, 27 }) 28 );