-
Notifications
You must be signed in to change notification settings - Fork 0
/
mongoDB.js
51 lines (44 loc) · 970 Bytes
/
mongoDB.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const { Schema, model } = require("mongoose");
const musicbot = Schema({
guildID: String,
role: String,
language: String,
channels: Array,
});
const loop = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String,
});
const queue = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String,
});
const playlist = Schema({
userID: String,
playlist: Array,
musics: Array,
});
const playlist_timer = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String,
});
const playlist_timer2 = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String,
});
module.exports = {
musicbot: model("musicbot", musicbot),
loop: model("loop", loop),
queue: model("queue", queue),
playlist: model("playlist", playlist),
playlist_timer: model("playlist_timer", playlist_timer),
playlist_timer2: model("playlist_timer2", playlist_timer2),
};