diff options
Diffstat (limited to 'db/schema.sql')
| -rw-r--r-- | db/schema.sql | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/schema.sql b/db/schema.sql index 60505bb..9713add 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -21,7 +21,7 @@ CREATE TABLE rides ( average_speed_mps real not null, created_at text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')), updated_at text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')) -, cotacol_score real, cotacol_algo_version text, moving_time_s integer, moving_time_algo_version text); +, cotacol_score real, cotacol_algo_version text, moving_time_s integer, moving_time_algo_version text, bike_type TEXT NOT NULL DEFAULT '' CHECK (bike_type IN ('', 'road', 'mtb')), ride_type TEXT NOT NULL DEFAULT '' CHECK (ride_type IN ('', 'training', 'indoor', 'race', 'transport'))); CREATE TABLE official_climbs ( id integer primary key, name text not null, @@ -40,4 +40,5 @@ INSERT INTO "schema_migrations" (version) VALUES ('20260807000000'), ('20260813000000'), ('20260820184307'), - ('20260821000000'); + ('20260821000000'), + ('20260823000000'); |
