Compare commits
No commits in common. "69d73b4f6f007c1b501a8057b35247a0a53bc526" and "7ec35edcaf7bcf0d464cdc56620fe69993bb9f76" have entirely different histories.
69d73b4f6f
...
7ec35edcaf
5
init.sql
5
init.sql
@ -2,7 +2,7 @@ create table if not exists training(
|
||||
id uuid primary key default gen_random_uuid(),
|
||||
owner varchar(255) not null,
|
||||
filename text not null,
|
||||
type varchar(255) not null,
|
||||
medium varchar(255) not null,
|
||||
description text not null,
|
||||
moving_time float not null,
|
||||
stopped_time float not null,
|
||||
@ -14,7 +14,8 @@ create table if not exists training(
|
||||
create table if not exists training_data(
|
||||
training_id uuid not null,
|
||||
t timestamp with time zone not null,
|
||||
geog GEOGRAPHY(Point), -- perf issues but don't care enough for geometry->projection->geography conversions
|
||||
lat float not null,
|
||||
lon float not null,
|
||||
speed float not null,
|
||||
elevation float not null,
|
||||
constraint fk_training_id foreign key(training_id) references training(id) on delete cascade
|
||||
|
Loading…
x
Reference in New Issue
Block a user