fix(tours): one tour type catalogue, and no column nothing writes

tour_types now holds every key the shared contract accepts, all but hike
disabled, and create and edit turn a disabled type away with a 400 instead
of failing on the foreign key. tours.tour_group_id is dropped: nothing ever
wrote or read it. difficulty and wanderer_ref stay for the Wanderer import.
This commit is contained in:
Maurice
2026-10-07 20:54:10 +02:00
parent f64f9e58de
commit f7edd849ab
29 changed files with 182 additions and 50 deletions
-1
View File
@@ -42,7 +42,6 @@ export const tourSchema = z.object({
// Nullable reference to a tour in wanderer.
wanderer_ref: z.string().nullable(),
match_confidence: z.number().min(0).max(1).nullable(),
tour_group_id: z.number().int().nullable(),
max_hiking_difficulty: tourMaxHikingDifficultySchema,
});
export type Tour = z.infer<typeof tourSchema>;