Fix ride model versioning

This commit is contained in:
gpt-engineer-app[bot]
2025-10-30 14:07:05 +00:00
parent 1700411b91
commit 36790600b9
3 changed files with 153 additions and 0 deletions

View File

@@ -2777,6 +2777,10 @@ export type Database = {
}
ride_model_versions: {
Row: {
banner_image_id: string | null
banner_image_url: string | null
card_image_id: string | null
card_image_url: string | null
category: string
change_reason: string | null
change_type: Database["public"]["Enums"]["version_change_type"]
@@ -2787,12 +2791,17 @@ export type Database = {
manufacturer_id: string | null
name: string
ride_model_id: string
ride_type: string | null
slug: string
submission_id: string | null
version_id: string
version_number: number
}
Insert: {
banner_image_id?: string | null
banner_image_url?: string | null
card_image_id?: string | null
card_image_url?: string | null
category: string
change_reason?: string | null
change_type?: Database["public"]["Enums"]["version_change_type"]
@@ -2803,12 +2812,17 @@ export type Database = {
manufacturer_id?: string | null
name: string
ride_model_id: string
ride_type?: string | null
slug: string
submission_id?: string | null
version_id?: string
version_number: number
}
Update: {
banner_image_id?: string | null
banner_image_url?: string | null
card_image_id?: string | null
card_image_url?: string | null
category?: string
change_reason?: string | null
change_type?: Database["public"]["Enums"]["version_change_type"]
@@ -2819,6 +2833,7 @@ export type Database = {
manufacturer_id?: string | null
name?: string
ride_model_id?: string
ride_type?: string | null
slug?: string
submission_id?: string | null
version_id?: string

View File

@@ -168,7 +168,12 @@ export interface RideModelVersion extends BaseVersionWithProfile {
slug: string;
manufacturer_id: string | null;
category: string;
ride_type: string;
description: string | null;
banner_image_url: string | null;
banner_image_id: string | null;
card_image_url: string | null;
card_image_id: string | null;
// Note: technical_specs removed - use ride_model_technical_specifications table
}