Add review system database restructure

This commit is contained in:
gpt-engineer-app[bot]
2025-09-20 12:55:12 +00:00
parent c1565c82dd
commit f12585fc52
2 changed files with 232 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ export type Database = {
Tables: {
companies: {
Row: {
average_rating: number | null
company_type: string
created_at: string
description: string | null
@@ -25,11 +26,13 @@ export type Database = {
logo_url: string | null
name: string
person_type: string | null
review_count: number | null
slug: string
updated_at: string
website_url: string | null
}
Insert: {
average_rating?: number | null
company_type: string
created_at?: string
description?: string | null
@@ -39,11 +42,13 @@ export type Database = {
logo_url?: string | null
name: string
person_type?: string | null
review_count?: number | null
slug: string
updated_at?: string
website_url?: string | null
}
Update: {
average_rating?: number | null
company_type?: string
created_at?: string
description?: string | null
@@ -53,6 +58,7 @@ export type Database = {
logo_url?: string | null
name?: string
person_type?: string | null
review_count?: number | null
slug?: string
updated_at?: string
website_url?: string | null
@@ -669,7 +675,18 @@ export type Database = {
[_ in never]: never
}
Functions: {
[_ in never]: never
update_company_ratings: {
Args: { target_company_id: string }
Returns: undefined
}
update_park_ratings: {
Args: { target_park_id: string }
Returns: undefined
}
update_ride_ratings: {
Args: { target_ride_id: string }
Returns: undefined
}
}
Enums: {
[_ in never]: never