Fix ride versioning inconsistencies

This commit is contained in:
gpt-engineer-app[bot]
2025-10-30 13:56:26 +00:00
parent e481f7aede
commit 1700411b91
4 changed files with 460 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
/**
* Ride Former Names Types
* Relational replacement for JSONB former_names field
*/
export interface RideFormerName {
id: string;
ride_id: string;
name: string;
used_from: string | null;
used_until: string | null;
created_at: string;
updated_at: string;
}
export interface RideFormerNameInsert {
ride_id: string;
name: string;
used_from?: string | null;
used_until?: string | null;
}
export interface RideFormerNameUpdate {
name?: string;
used_from?: string | null;
used_until?: string | null;
}