Add profile photo uploads and custom difficulty support

This commit is contained in:
2026-10-13 20:50:54 +05:00
parent 8c3de302e7
commit de812453ec
37 changed files with 1139 additions and 74 deletions

View File

@@ -151,6 +151,7 @@ export type Database = {
revision_id: string;
host_player_id: string;
difficulty: string;
difficulty_settings: Json;
player_limit: number;
status: string;
current_round: number;
@@ -162,6 +163,7 @@ export type Database = {
revision_id: string;
host_player_id: string;
difficulty: string;
difficulty_settings: Json;
player_limit: number;
status?: string;
current_round?: number;
@@ -176,6 +178,28 @@ export type Database = {
};
Relationships: [];
};
difficulty_presets: {
Row: {
created_at: string;
id: string;
name: string;
seconds: number;
zoom: boolean;
};
Insert: {
created_at?: string;
id?: string;
name: string;
seconds: number;
zoom: boolean;
};
Update: {
name?: string;
seconds?: number;
zoom?: boolean;
};
Relationships: [];
};
multiplayer_rounds: {
Row: {
room_id: string;
@@ -476,6 +500,7 @@ export type Database = {
created_at: string;
current_round: number;
difficulty: string;
difficulty_settings: Json;
id: string;
owner_id: string | null;
revision_id: string;
@@ -485,6 +510,7 @@ export type Database = {
created_at?: string;
current_round?: number;
difficulty: string;
difficulty_settings: Json;
id?: string;
owner_id?: string | null;
revision_id: string;
@@ -494,6 +520,7 @@ export type Database = {
created_at?: string;
current_round?: number;
difficulty?: string;
difficulty_settings?: Json;
id?: string;
owner_id?: string | null;
revision_id?: string;
@@ -540,6 +567,7 @@ export type Database = {
};
profiles: {
Row: AccountStatusFields & {
avatar_path: string | null;
glow_color: string;
bug_finder: boolean;
custom_prefix: string | null;
@@ -551,6 +579,7 @@ export type Database = {
role: string;
};
Insert: Partial<AccountStatusFields> & {
avatar_path?: string | null;
glow_color?: string;
bug_finder?: boolean;
custom_prefix?: string | null;
@@ -562,6 +591,7 @@ export type Database = {
role?: string;
};
Update: Partial<AccountStatusFields> & {
avatar_path?: string | null;
glow_color?: string;
bug_finder?: boolean;
custom_prefix?: string | null;