From 64ab9e049ad4d3b68c0b9a9ce2e08363e77d3c84 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 17 Feb 2021 19:00:26 +0100 Subject: :see_no_evil: revert changes --- src/models/User.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/models') diff --git a/src/models/User.ts b/src/models/User.ts index 5f73445f..5dfe320c 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -24,6 +24,7 @@ export interface User extends Document { flags: bigint; // TODO: automatically convert BigInt to BitField of UserFlags public_flags: bigint; hash: string; // hash of the password, salt is saved in password (bcrypt) + guilds: bigint[]; // array of guild ids the user is part of valid_tokens_since: number; // all tokens with a previous issue date are invalid user_settings: UserSettings; relationships: Relationship[]; @@ -127,6 +128,7 @@ export const UserSchema = new Schema({ flags: Types.Long, // TODO: automatically convert Types.Long to BitField of UserFlags public_flags: Types.Long, hash: String, // hash of the password, salt is saved in password (bcrypt) + guilds: [Types.Long], // array of guild ids the user is part of valid_tokens_since: Number, // all tokens with a previous issue date are invalid user_settings: { afk_timeout: Number, -- cgit 1.5.1