Fix SECURITY DEFINER on filtered_profiles view

This commit is contained in:
gpt-engineer-app[bot]
2025-10-12 14:06:39 +00:00
parent 934c649514
commit 846c8ec7c0
2 changed files with 114 additions and 46 deletions

View File

@@ -2785,26 +2785,26 @@ export type Database = {
username: string | null
}
Insert: {
avatar_image_id?: string | null
avatar_url?: string | null
banned?: boolean | null
bio?: string | null
coaster_count?: number | null
avatar_image_id?: never
avatar_url?: never
banned?: never
bio?: never
coaster_count?: never
created_at?: string | null
date_of_birth?: string | null
date_of_birth?: never
display_name?: string | null
home_park_id?: string | null
home_park_id?: never
id?: string | null
location_id?: string | null
park_count?: number | null
personal_location?: string | null
location_id?: never
park_count?: never
personal_location?: never
preferred_language?: string | null
preferred_pronouns?: string | null
preferred_pronouns?: never
privacy_level?: string | null
reputation_score?: number | null
review_count?: number | null
ride_count?: number | null
show_pronouns?: boolean | null
reputation_score?: never
review_count?: never
ride_count?: never
show_pronouns?: never
theme_preference?: string | null
timezone?: string | null
updated_at?: string | null
@@ -2812,48 +2812,33 @@ export type Database = {
username?: string | null
}
Update: {
avatar_image_id?: string | null
avatar_url?: string | null
banned?: boolean | null
bio?: string | null
coaster_count?: number | null
avatar_image_id?: never
avatar_url?: never
banned?: never
bio?: never
coaster_count?: never
created_at?: string | null
date_of_birth?: string | null
date_of_birth?: never
display_name?: string | null
home_park_id?: string | null
home_park_id?: never
id?: string | null
location_id?: string | null
park_count?: number | null
personal_location?: string | null
location_id?: never
park_count?: never
personal_location?: never
preferred_language?: string | null
preferred_pronouns?: string | null
preferred_pronouns?: never
privacy_level?: string | null
reputation_score?: number | null
review_count?: number | null
ride_count?: number | null
show_pronouns?: boolean | null
reputation_score?: never
review_count?: never
ride_count?: never
show_pronouns?: never
theme_preference?: string | null
timezone?: string | null
updated_at?: string | null
user_id?: string | null
username?: string | null
}
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"]
},
]
Relationships: []
}
moderation_sla_metrics: {
Row: {