Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Update mongoDB.js
Browse files Browse the repository at this point in the history
  • Loading branch information
umutxyp authored Sep 5, 2022
1 parent c0fd199 commit 5c958b2
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions mongoDB.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
const { Schema, model } = require("mongoose");

const musicbot = Schema({
guildID: String,
role: String,
language: String,
channels: Array
})
guildID: String,
role: String,
language: String,
channels: Array,
});

const loop = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String
})
userID: String,
guildID: String,
channelID: String,
messageID: String,
});

const queue = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String
})
userID: String,
guildID: String,
channelID: String,
messageID: String,
});

const playlist = Schema({
userID: String,
playlist: Array,
musics: Array
})
userID: String,
playlist: Array,
musics: Array,
});

const playlist_timer = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String
})
userID: String,
guildID: String,
channelID: String,
messageID: String,
});

const playlist_timer2 = Schema({
userID: String,
guildID: String,
channelID: String,
messageID: String
})
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)
}
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),
};

0 comments on commit 5c958b2

Please sign in to comment.