Refactor log_request_metadata function

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 20:58:52 +00:00
parent 50e560f7cd
commit 19b1451f32
11 changed files with 992 additions and 63 deletions

View File

@@ -702,6 +702,7 @@ export type Database = {
status: string
subject: string
submitter_profile_data: Json | null
submitter_profile_id: string | null
submitter_reputation: number | null
submitter_username: string | null
thread_id: string | null
@@ -730,6 +731,7 @@ export type Database = {
status?: string
subject: string
submitter_profile_data?: Json | null
submitter_profile_id?: string | null
submitter_reputation?: number | null
submitter_username?: string | null
thread_id?: string | null
@@ -758,6 +760,7 @@ export type Database = {
status?: string
subject?: string
submitter_profile_data?: Json | null
submitter_profile_id?: string | null
submitter_reputation?: number | null
submitter_username?: string | null
thread_id?: string | null
@@ -766,7 +769,22 @@ export type Database = {
user_agent?: string | null
user_id?: string | null
}
Relationships: []
Relationships: [
{
foreignKeyName: "contact_submissions_submitter_profile_id_fkey"
columns: ["submitter_profile_id"]
isOneToOne: false
referencedRelation: "filtered_profiles"
referencedColumns: ["id"]
},
{
foreignKeyName: "contact_submissions_submitter_profile_id_fkey"
columns: ["submitter_profile_id"]
isOneToOne: false
referencedRelation: "profiles"
referencedColumns: ["id"]
},
]
}
content_submissions: {
Row: {
@@ -5576,11 +5594,11 @@ export type Database = {
log_request_metadata:
| {
Args: {
p_breadcrumbs?: Json
p_breadcrumbs?: string
p_client_version?: string
p_duration_ms?: number
p_endpoint?: string
p_environment_context?: Json
p_environment_context?: string
p_error_message?: string
p_error_stack?: string
p_error_type?: string