Fix ride model technical specs

Implement plan to fix ride model technical specifications pipeline. This includes creating a new migration for the `ride_model_submission_technical_specifications` table, updating `entitySubmissionHelpers.ts` to handle insertion of technical specifications, and modifying the edge function `process-selective-approval/index.ts` to fetch these specifications. This ensures no data loss for ride model technical specifications.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-06 15:03:51 +00:00
parent de9a48951f
commit ed9d17bf10
4 changed files with 253 additions and 1 deletions

View File

@@ -3413,6 +3413,47 @@ export type Database = {
},
]
}
ride_model_submission_technical_specifications: {
Row: {
category: string | null
created_at: string | null
display_order: number | null
id: string
ride_model_submission_id: string
spec_name: string
spec_unit: string | null
spec_value: string
}
Insert: {
category?: string | null
created_at?: string | null
display_order?: number | null
id?: string
ride_model_submission_id: string
spec_name: string
spec_unit?: string | null
spec_value: string
}
Update: {
category?: string | null
created_at?: string | null
display_order?: number | null
id?: string
ride_model_submission_id?: string
spec_name?: string
spec_unit?: string | null
spec_value?: string
}
Relationships: [
{
foreignKeyName: "fk_ride_model_submission"
columns: ["ride_model_submission_id"]
isOneToOne: false
referencedRelation: "ride_model_submissions"
referencedColumns: ["id"]
},
]
}
ride_model_submissions: {
Row: {
banner_image_id: string | null