Fix database schema

This commit is contained in:
gpt-engineer-app[bot]
2025-10-17 14:25:03 +00:00
parent badb2cd865
commit 921abb63a1
8 changed files with 737 additions and 44 deletions

View File

@@ -282,6 +282,55 @@ export interface AuditLogEntry {
created_at: string;
}
// Relational data structures (NO JSONB)
export interface RideCoasterStat {
id: string;
ride_id: string;
stat_name: string;
stat_value: number;
unit?: string | null;
category?: string | null;
description?: string | null;
display_order: number;
created_at: string;
updated_at: string;
}
export interface RideTechnicalSpecification {
id: string;
ride_id: string;
spec_name: string;
spec_value: string;
spec_type: string;
category?: string | null;
unit?: string | null;
display_order: number;
created_at: string;
}
export interface RideModelTechnicalSpecification {
id: string;
ride_model_id: string;
spec_name: string;
spec_value: string;
spec_type: string;
category?: string | null;
unit?: string | null;
display_order: number;
created_at: string;
}
export interface ListItem {
id: string;
list_id: string;
entity_type: 'park' | 'ride' | 'coaster';
entity_id: string;
position: number;
notes?: string | null;
created_at: string;
updated_at: string;
}
// User ride credit tracking
export interface UserRideCredit {
id: string;