mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 21:51:17 -05:00
Add review system database restructure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user