Fix ride submission data loss

Implement the plan to fix critical data loss in ride submissions. This includes:
- Storing ride technical specifications, coaster statistics, and name history in submission tables.
- Adding missing category-specific fields to the `ride_submissions` table via a new migration.
- Updating submission helpers and the edge function to include these new fields.
- Fixing the park location Zod schema to include `street_address`.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-06 14:51:36 +00:00
parent 9f5240ae95
commit de9a48951f
5 changed files with 262 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ export const parkValidationSchema = z.object({
location_id: z.string().uuid().optional().nullable(),
location: z.object({
name: z.string(),
street_address: z.string().optional().nullable(),
city: z.string().optional().nullable(),
state_province: z.string().optional().nullable(),
country: z.string(),