summary refs log tree commit diff
path: root/src/schema/User.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema/User.ts')
-rw-r--r--src/schema/User.ts43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/schema/User.ts b/src/schema/User.ts
new file mode 100644

index 00000000..2b74a433 --- /dev/null +++ b/src/schema/User.ts
@@ -0,0 +1,43 @@ +export const UserUpdateSchema = { + id: String, + username: String, + discriminator: String, + avatar: String || null, + $phone: String, + desktop: Boolean, + mobile: Boolean, + premium: Boolean, + premium_type: Number, + bot: Boolean, + system: Boolean, + nsfw_allowed: Boolean, + mfa_enabled: Boolean, + created_at: Date, + verified: Boolean, + $email: String, + flags: BigInt, + public_flags: BigInt, + $guilds: [String], +}; + +export interface UserUpdateSchema { + id: string; + username: string; + discriminator: string; + avatar: string | null; + phone?: string; + desktop: boolean; + mobile: boolean; + premium: boolean; + premium_type: number; + bot: boolean; + system: boolean; + nsfw_allowed: boolean; + mfa_enabled: boolean; + created_at: Date; + verified: boolean; + email?: string; + flags: bigint; + public_flags: bigint; + guilds: string[]; +}