From e5f408be0889562f6fa36ac1bb1730e50bf1951f Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 6 Apr 2021 03:56:19 +0200 Subject: :bug: fix Database --- dist/models/User.js | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) (limited to 'dist/models/User.js') diff --git a/dist/models/User.js b/dist/models/User.js index e40df925..f6734de4 100644 --- a/dist/models/User.js +++ b/dist/models/User.js @@ -13,7 +13,6 @@ exports.UserSchema = new mongoose_1.Schema({ username: String, discriminator: String, avatar: String, - fingerprints: [String], phone: String, desktop: Boolean, mobile: Boolean, @@ -28,9 +27,33 @@ exports.UserSchema = new mongoose_1.Schema({ email: String, flags: mongoose_1.Types.Long, public_flags: mongoose_1.Types.Long, - hash: String, - guilds: [mongoose_1.Types.Long], - valid_tokens_since: Date, + user_data: { + fingerprints: [String], + hash: String, + guilds: [mongoose_1.Types.Long], + valid_tokens_since: Date, + relationships: [ + { + id: mongoose_1.Types.Long, + nickname: String, + type: Number, + user_id: mongoose_1.Types.Long, + }, + ], + connected_accounts: [ + { + access_token: String, + friend_sync: Boolean, + id: String, + name: String, + revoked: Boolean, + show_activity: Boolean, + type: String, + verifie: Boolean, + visibility: Number, + }, + ], + }, user_settings: { afk_timeout: Number, allow_accessibility_detection: Boolean, @@ -77,27 +100,6 @@ exports.UserSchema = new mongoose_1.Schema({ theme: String, timezone_offset: Number, }, - relationships: [ - { - id: mongoose_1.Types.Long, - nickname: String, - type: Number, - user_id: mongoose_1.Types.Long, - }, - ], - connected_accounts: [ - { - access_token: String, - friend_sync: Boolean, - id: String, - name: String, - revoked: Boolean, - show_activity: Boolean, - type: String, - verifie: Boolean, - visibility: Number, - }, - ], presence: { status: String, activities: [Activity_1.Activity], -- cgit 1.5.1