mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 06:11:15 -05:00
Refactor user settings implementation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user