Added profile and join analytics

This commit is contained in:
CorwinDev committed 2022-08-16 20:31:58 +02:00
1 parent ef0725439c
commit d0a969f145
15 files changed
+227 -33

No files matched your search

+6 -2
View File
@@ -10,10 +10,14 @@ let hm = new mongoose.Schema({
tags: [String],
premium: Boolean,
invite: String,
votes: Number,
votes: { type: Number, default: 0 },
bump: Date,
webhook: String,
bumps: Number,
bumps: { type: Number, default: 0 },
analytics: Object,
analytics_visitors: Number,
analytics_joins: Number,
country: Object,
});
module.exports = mongoose.model("servers", hm);
+4 -4
View File
@@ -3,10 +3,10 @@ let model = new mongoose.Schema({
id: String,
biography: { type: String, default: null },
coins: String,
website: { type: String, default: null },
github: { type: String, default: null },
twitter: { type: String, default: null },
instagram: { type: String, default: null }
website: String,
github: String,
twitter:String ,
instagram: String
});
module.exports = mongoose.model("profiles", model);