Added profile and join analytics
This commit is contained in:
1 parent
ef0725439c
commit
d0a969f145
15 files changed
+227
-33
No files matched your search
+6
-2
@@ -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
@@ -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);
|
||||
Reference in new issue
Block a user