Added bots & votes
This commit is contained in:
1 parent
c058ab2e55
commit
47dfdbd344
16 files changed
+798
-457
No files matched your search
+4
-1
@@ -5,11 +5,14 @@ let hm = new mongoose.Schema({
|
||||
icon: String,
|
||||
verified: Boolean,
|
||||
description: String,
|
||||
owner: String,
|
||||
owners: [String],
|
||||
long_description: String,
|
||||
banner: String,
|
||||
tags: [String],
|
||||
premium: Boolean,
|
||||
servers: String,
|
||||
users: String,
|
||||
votes: Number,
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("bots", hm);
|
||||
@@ -0,0 +1,8 @@
|
||||
const mongoose = require("mongoose");
|
||||
let model = new mongoose.Schema({
|
||||
user: String,
|
||||
date: Date,
|
||||
bot: String,
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("votes", model);
|
||||
Reference in new issue
Block a user