mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 08:53:13 +00:00
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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user