adds trail date field

This commit is contained in:
Christian Beutel
2024-04-05 16:39:50 +02:00
parent 8f71952a71
commit 2a2a49fd94
18 changed files with 176 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ class Trail {
id?: string;
name: string;
location?: string;
date?: string;
public: boolean;
distance?: number;
elevation_gain?: number;
@@ -36,6 +37,7 @@ class Trail {
params?: {
id?: string,
location?: string,
date?: string,
public?: boolean,
distance?: number,
elevation_gain?: number,
@@ -59,6 +61,7 @@ class Trail {
this.id = params?.id;
this.name = name;
this.location = params?.location;
this.date = params?.date;
this.public = params?.public ?? false
this.distance = params?.distance;
this.elevation_gain = params?.elevation_gain;