Fix SECURITY DEFINER on filtered_profiles view

This commit is contained in:
gpt-engineer-app[bot]
2025-10-12 14:05:43 +00:00
parent c5ad432667
commit 934c649514
2 changed files with 82 additions and 31 deletions

View File

@@ -2785,26 +2785,26 @@ export type Database = {
username: string | null
}
Insert: {
avatar_image_id?: never
avatar_url?: never
banned?: never
bio?: never
coaster_count?: never
avatar_image_id?: string | null
avatar_url?: string | null
banned?: boolean | null
bio?: string | null
coaster_count?: number | null
created_at?: string | null
date_of_birth?: never
date_of_birth?: string | null
display_name?: string | null
home_park_id?: never
home_park_id?: string | null
id?: string | null
location_id?: never
park_count?: never
personal_location?: never
location_id?: string | null
park_count?: number | null
personal_location?: string | null
preferred_language?: string | null
preferred_pronouns?: never
preferred_pronouns?: string | null
privacy_level?: string | null
reputation_score?: never
review_count?: never
ride_count?: never
show_pronouns?: never
reputation_score?: number | null
review_count?: number | null
ride_count?: number | null
show_pronouns?: boolean | null
theme_preference?: string | null
timezone?: string | null
updated_at?: string | null
@@ -2812,33 +2812,48 @@ export type Database = {
username?: string | null
}
Update: {
avatar_image_id?: never
avatar_url?: never
banned?: never
bio?: never
coaster_count?: never
avatar_image_id?: string | null
avatar_url?: string | null
banned?: boolean | null
bio?: string | null
coaster_count?: number | null
created_at?: string | null
date_of_birth?: never
date_of_birth?: string | null
display_name?: string | null
home_park_id?: never
home_park_id?: string | null
id?: string | null
location_id?: never
park_count?: never
personal_location?: never
location_id?: string | null
park_count?: number | null
personal_location?: string | null
preferred_language?: string | null
preferred_pronouns?: never
preferred_pronouns?: string | null
privacy_level?: string | null
reputation_score?: never
review_count?: never
ride_count?: never
show_pronouns?: never
reputation_score?: number | null
review_count?: number | null
ride_count?: number | null
show_pronouns?: boolean | null
theme_preference?: string | null
timezone?: string | null
updated_at?: string | null
user_id?: string | null
username?: string | null
}
Relationships: []
Relationships: [
{
foreignKeyName: "profiles_home_park_id_fkey"
columns: ["home_park_id"]
isOneToOne: false
referencedRelation: "parks"
referencedColumns: ["id"]
},
{
foreignKeyName: "profiles_location_id_fkey"
columns: ["location_id"]
isOneToOne: false
referencedRelation: "locations"
referencedColumns: ["id"]
},
]
}
moderation_sla_metrics: {
Row: {