Refactor user settings implementation

This commit is contained in:
gpt-engineer-app[bot]
2025-09-28 19:54:33 +00:00
parent 7fc30413ad
commit 01837bc999
12 changed files with 2456 additions and 0 deletions

View File

@@ -357,11 +357,15 @@ export type Database = {
id: string
location_id: string | null
park_count: number | null
preferred_language: string | null
preferred_pronouns: string | null
privacy_level: string
reputation_score: number | null
review_count: number | null
ride_count: number | null
show_pronouns: boolean | null
theme_preference: string
timezone: string | null
updated_at: string
user_id: string
username: string
@@ -378,11 +382,15 @@ export type Database = {
id?: string
location_id?: string | null
park_count?: number | null
preferred_language?: string | null
preferred_pronouns?: string | null
privacy_level?: string
reputation_score?: number | null
review_count?: number | null
ride_count?: number | null
show_pronouns?: boolean | null
theme_preference?: string
timezone?: string | null
updated_at?: string
user_id: string
username: string
@@ -399,11 +407,15 @@ export type Database = {
id?: string
location_id?: string | null
park_count?: number | null
preferred_language?: string | null
preferred_pronouns?: string | null
privacy_level?: string
reputation_score?: number | null
review_count?: number | null
ride_count?: number | null
show_pronouns?: boolean | null
theme_preference?: string
timezone?: string | null
updated_at?: string
user_id?: string
username?: string
@@ -707,6 +719,63 @@ export type Database = {
},
]
}
user_blocks: {
Row: {
blocked_id: string
blocker_id: string
created_at: string
id: string
reason: string | null
}
Insert: {
blocked_id: string
blocker_id: string
created_at?: string
id?: string
reason?: string | null
}
Update: {
blocked_id?: string
blocker_id?: string
created_at?: string
id?: string
reason?: string | null
}
Relationships: []
}
user_preferences: {
Row: {
accessibility_options: Json
created_at: string
email_notifications: Json
id: string
privacy_settings: Json
push_notifications: Json
updated_at: string
user_id: string
}
Insert: {
accessibility_options?: Json
created_at?: string
email_notifications?: Json
id?: string
privacy_settings?: Json
push_notifications?: Json
updated_at?: string
user_id: string
}
Update: {
accessibility_options?: Json
created_at?: string
email_notifications?: Json
id?: string
privacy_settings?: Json
push_notifications?: Json
updated_at?: string
user_id?: string
}
Relationships: []
}
user_ride_credits: {
Row: {
created_at: string
@@ -772,6 +841,42 @@ export type Database = {
}
Relationships: []
}
user_sessions: {
Row: {
created_at: string
device_info: Json | null
expires_at: string
id: string
ip_address: unknown | null
last_activity: string
session_token: string
user_agent: string | null
user_id: string
}
Insert: {
created_at?: string
device_info?: Json | null
expires_at?: string
id?: string
ip_address?: unknown | null
last_activity?: string
session_token: string
user_agent?: string | null
user_id: string
}
Update: {
created_at?: string
device_info?: Json | null
expires_at?: string
id?: string
ip_address?: unknown | null
last_activity?: string
session_token?: string
user_agent?: string | null
user_id?: string
}
Relationships: []
}
user_top_lists: {
Row: {
created_at: string