summary refs log tree commit diff
path: root/src/models
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 21:36:37 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 21:36:37 +0100
commit1b5e487ce006018c9e7c578f285e020d14c9f991 (patch)
tree9b0af38cde465c3d93cc9b9b14a97f83764a63bc /src/models
parent:bug: fix identify schema (diff)
downloadserver-1b5e487ce006018c9e7c578f285e020d14c9f991.tar.xz
:sparkles: add guilds array to user model
Diffstat (limited to 'src/models')
-rw-r--r--src/models/User.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/User.ts b/src/models/User.ts
index 4cef39c6..27e20e1c 100644
--- a/src/models/User.ts
+++ b/src/models/User.ts
@@ -15,6 +15,7 @@ export interface User {
 	hash: string; // hash of the password, salt is saved in password (bcrypt)
 	valid_tokens_since: number; // all tokens with a previous issue date are invalid
 	user_settings: UserSettings;
+	guilds: bigint[] // array of guild ids the user is part of
 }
 
 export interface UserSettings {