From 9a848901422bbc7e565d1af6e0f695380d7e7705 Mon Sep 17 00:00:00 2001 From: elmocito <42518790+elmocito@users.noreply.github.com> Date: Fri, 9 Oct 2026 14:29:54 +0200 Subject: [PATCH] fix(tours): align generated Tour entity --- server/src/db/entities/Tours.entity.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/db/entities/Tours.entity.ts b/server/src/db/entities/Tours.entity.ts index bf06e8ed8..aebc72d34 100644 --- a/server/src/db/entities/Tours.entity.ts +++ b/server/src/db/entities/Tours.entity.ts @@ -14,13 +14,13 @@ export class Tours { elevation_gain?: number | null; elevation_loss?: number | null; duration?: number | null; - planned_duration_minutes?: number | null; - break_additional_minutes?: number | null; difficulty?: string | null; wanderer_ref?: string | null; match_confidence?: number | null; created_at?: string | null; max_hiking_difficulty: number & Opt = 2; + planned_duration_minutes?: number | null; + break_additional_minutes?: number | null; tourTypeRef!: Ref; tour_waypoints_collection = new Collection(this); } @@ -36,13 +36,13 @@ export const ToursSchema = defineEntity({ elevation_gain: p.double().nullable(), elevation_loss: p.double().nullable(), duration: p.double().nullable(), - planned_duration_minutes: p.integer().nullable(), - break_additional_minutes: p.integer().nullable(), difficulty: p.text().nullable(), wanderer_ref: p.text().nullable(), match_confidence: p.double().nullable(), created_at: p.text().nullable().defaultRaw(`CURRENT_TIMESTAMP`), max_hiking_difficulty: p.integer().default(2), + planned_duration_minutes: p.integer().nullable(), + break_additional_minutes: p.integer().nullable(), tourTypeRef: () => p.manyToOne(TourTypes).ref().joinColumn('tour_type').hidden().index('idx_tours_tour_type'), tour_waypoints_collection: () => p.oneToMany(TourWaypoints).mappedBy('place').hidden(), },