Approve database migration

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 15:18:06 +00:00
parent 5612d19d07
commit a86da6e833
17 changed files with 1189 additions and 36 deletions

View File

@@ -2316,12 +2316,15 @@ export type Database = {
}
request_metadata: {
Row: {
breadcrumbs: Json | null
client_version: string | null
completed_at: string | null
created_at: string
duration_ms: number | null
endpoint: string
environment_context: Json | null
error_message: string | null
error_stack: string | null
error_type: string | null
id: string
ip_address_hash: string | null
@@ -2336,12 +2339,15 @@ export type Database = {
user_id: string | null
}
Insert: {
breadcrumbs?: Json | null
client_version?: string | null
completed_at?: string | null
created_at?: string
duration_ms?: number | null
endpoint: string
environment_context?: Json | null
error_message?: string | null
error_stack?: string | null
error_type?: string | null
id?: string
ip_address_hash?: string | null
@@ -2356,12 +2362,15 @@ export type Database = {
user_id?: string | null
}
Update: {
breadcrumbs?: Json | null
client_version?: string | null
completed_at?: string | null
created_at?: string
duration_ms?: number | null
endpoint?: string
environment_context?: Json | null
error_message?: string | null
error_stack?: string | null
error_type?: string | null
id?: string
ip_address_hash?: string | null
@@ -4585,6 +4594,19 @@ export type Database = {
}
}
Views: {
error_summary: {
Row: {
affected_users: number | null
avg_duration_ms: number | null
endpoint: string | null
error_type: string | null
first_occurred: string | null
last_occurred: string | null
occurrence_count: number | null
recent_request_ids: string[] | null
}
Relationships: []
}
filtered_profiles: {
Row: {
avatar_image_id: string | null
@@ -4898,23 +4920,44 @@ export type Database = {
}
Returns: string
}
log_request_metadata: {
Args: {
p_client_version?: string
p_duration_ms?: number
p_endpoint?: string
p_error_message?: string
p_error_type?: string
p_method?: string
p_parent_request_id?: string
p_request_id: string
p_status_code?: number
p_trace_id?: string
p_user_agent?: string
p_user_id?: string
}
Returns: undefined
}
log_request_metadata:
| {
Args: {
p_breadcrumbs?: Json
p_client_version?: string
p_duration_ms?: number
p_endpoint?: string
p_environment_context?: Json
p_error_message?: string
p_error_stack?: string
p_error_type?: string
p_method?: string
p_parent_request_id?: string
p_request_id: string
p_status_code?: number
p_trace_id?: string
p_user_agent?: string
p_user_id?: string
}
Returns: undefined
}
| {
Args: {
p_client_version?: string
p_duration_ms?: number
p_endpoint?: string
p_error_message?: string
p_error_type?: string
p_method?: string
p_parent_request_id?: string
p_request_id: string
p_status_code?: number
p_trace_id?: string
p_user_agent?: string
p_user_id?: string
}
Returns: undefined
}
migrate_ride_technical_data: { Args: never; Returns: undefined }
migrate_user_list_items: { Args: never; Returns: undefined }
release_expired_locks: { Args: never; Returns: number }