Approve database migration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-10 19:01:15 +00:00
parent 25536fd202
commit 1fc9a1104f
11 changed files with 243 additions and 57 deletions

View File

@@ -18,7 +18,9 @@ export interface Company {
company_type: string; // Allow any string from database
person_type: string; // 'company', 'individual', 'firm', 'organization'
website_url?: string;
founded_year?: number;
founded_year?: number; // Legacy field
founded_date?: string;
founded_date_precision?: string;
headquarters_location?: string;
logo_url?: string;
banner_image_url?: string;
@@ -37,7 +39,9 @@ export interface Park {
status: string; // Allow any string from database
park_type: string; // Allow any string from database
opening_date?: string;
opening_date_precision?: string;
closing_date?: string;
closing_date_precision?: string;
website_url?: string;
phone?: string;
email?: string;
@@ -85,6 +89,7 @@ export interface RideNameHistory {
ride_id: string;
former_name: string;
date_changed?: string;
date_changed_precision?: string;
reason?: string;
from_year?: number;
to_year?: number;
@@ -128,7 +133,9 @@ export interface Ride {
ride_sub_type?: string; // Sub-category like "Flying Coaster", "Inverted Coaster", etc.
status: string; // Allow any string from database
opening_date?: string;
opening_date_precision?: string;
closing_date?: string;
closing_date_precision?: string;
height_requirement?: number;
age_requirement?: number;
capacity_per_hour?: number;

View File

@@ -10,7 +10,9 @@ export interface ParkSubmissionData {
park_type: string;
status: string;
opening_date?: string | null;
opening_date_precision?: string | null;
closing_date?: string | null;
closing_date_precision?: string | null;
website_url?: string | null;
phone?: string | null;
email?: string | null;
@@ -35,7 +37,9 @@ export interface RideSubmissionData {
manufacturer_id?: string | null;
designer_id?: string | null;
opening_date?: string | null;
opening_date_precision?: string | null;
closing_date?: string | null;
closing_date_precision?: string | null;
height_requirement?: number | null;
age_requirement?: number | null;
capacity_per_hour?: number | null;
@@ -61,7 +65,9 @@ export interface CompanySubmissionData {
slug: string;
description?: string | null;
person_type?: 'company' | 'individual';
founded_year?: number | null;
founded_year?: number | null; // Legacy field
founded_date?: string | null;
founded_date_precision?: string | null;
headquarters_location?: string | null;
website_url?: string | null;
logo_url?: string | null;