Refactor: Implement Phase 3A technical data migration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-02 01:14:42 +00:00
parent 6c95cd9856
commit f112186ebc
6 changed files with 682 additions and 18 deletions

View File

@@ -1103,6 +1103,50 @@ export type Database = {
},
]
}
ride_coaster_statistics: {
Row: {
category: string | null
created_at: string
description: string | null
display_order: number | null
id: string
ride_id: string
stat_name: string
stat_value: number
unit: string | null
}
Insert: {
category?: string | null
created_at?: string
description?: string | null
display_order?: number | null
id?: string
ride_id: string
stat_name: string
stat_value: number
unit?: string | null
}
Update: {
category?: string | null
created_at?: string
description?: string | null
display_order?: number | null
id?: string
ride_id?: string
stat_name?: string
stat_value?: number
unit?: string | null
}
Relationships: [
{
foreignKeyName: "ride_coaster_statistics_ride_id_fkey"
columns: ["ride_id"]
isOneToOne: false
referencedRelation: "rides"
referencedColumns: ["id"]
},
]
}
ride_coaster_stats: {
Row: {
category: string | null
@@ -1238,6 +1282,50 @@ export type Database = {
},
]
}
ride_model_technical_specifications: {
Row: {
category: string | null
created_at: string
display_order: number | null
id: string
ride_model_id: string
spec_name: string
spec_type: string
spec_value: string
unit: string | null
}
Insert: {
category?: string | null
created_at?: string
display_order?: number | null
id?: string
ride_model_id: string
spec_name: string
spec_type: string
spec_value: string
unit?: string | null
}
Update: {
category?: string | null
created_at?: string
display_order?: number | null
id?: string
ride_model_id?: string
spec_name?: string
spec_type?: string
spec_value?: string
unit?: string | null
}
Relationships: [
{
foreignKeyName: "ride_model_technical_specifications_ride_model_id_fkey"
columns: ["ride_model_id"]
isOneToOne: false
referencedRelation: "ride_models"
referencedColumns: ["id"]
},
]
}
ride_models: {
Row: {
banner_image_id: string | null
@@ -1297,6 +1385,50 @@ export type Database = {
},
]
}
ride_name_history: {
Row: {
created_at: string
date_changed: string | null
former_name: string
from_year: number | null
id: string
order_index: number | null
reason: string | null
ride_id: string
to_year: number | null
}
Insert: {
created_at?: string
date_changed?: string | null
former_name: string
from_year?: number | null
id?: string
order_index?: number | null
reason?: string | null
ride_id: string
to_year?: number | null
}
Update: {
created_at?: string
date_changed?: string | null
former_name?: string
from_year?: number | null
id?: string
order_index?: number | null
reason?: string | null
ride_id?: string
to_year?: number | null
}
Relationships: [
{
foreignKeyName: "ride_name_history_ride_id_fkey"
columns: ["ride_id"]
isOneToOne: false
referencedRelation: "rides"
referencedColumns: ["id"]
},
]
}
ride_submissions: {
Row: {
age_requirement: number | null
@@ -1416,6 +1548,50 @@ export type Database = {
},
]
}
ride_technical_specifications: {
Row: {
category: string | null
created_at: string
display_order: number | null
id: string
ride_id: string
spec_name: string
spec_type: string
spec_value: string
unit: string | null
}
Insert: {
category?: string | null
created_at?: string
display_order?: number | null
id?: string
ride_id: string
spec_name: string
spec_type: string
spec_value: string
unit?: string | null
}
Update: {
category?: string | null
created_at?: string
display_order?: number | null
id?: string
ride_id?: string
spec_name?: string
spec_type?: string
spec_value?: string
unit?: string | null
}
Relationships: [
{
foreignKeyName: "ride_technical_specifications_ride_id_fkey"
columns: ["ride_id"]
isOneToOne: false
referencedRelation: "rides"
referencedColumns: ["id"]
},
]
}
ride_technical_specs: {
Row: {
category: string | null
@@ -2006,6 +2182,10 @@ export type Database = {
}
Returns: undefined
}
migrate_ride_technical_data: {
Args: Record<PropertyKey, never>
Returns: undefined
}
update_company_ratings: {
Args: { target_company_id: string }
Returns: undefined