Compare commits
2 Commits
7ec35edcaf
...
69d73b4f6f
Author | SHA1 | Date | |
---|---|---|---|
69d73b4f6f | |||
e4df2727e6 |
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,
|
||||
medium varchar(255) not null,
|
||||
type varchar(255) not null,
|
||||
description text not null,
|
||||
moving_time float not null,
|
||||
stopped_time float not null,
|
||||
@ -14,8 +14,7 @@ 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,
|
||||
lat float not null,
|
||||
lon float not null,
|
||||
geog GEOGRAPHY(Point), -- perf issues but don't care enough for geometry->projection->geography conversions
|
||||
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