mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-11 12:34:51 +00:00
⚡ UserModel remove guild bigint array -> instead use MemberModel
This commit is contained in:
@@ -24,7 +24,6 @@ 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[];
|
||||
@@ -128,7 +127,6 @@ 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,
|
||||
|
||||
Reference in New Issue
Block a user