specify next steps
This commit is contained in:
parent
64341a9527
commit
9277d5fbaa
@ -7,6 +7,7 @@
|
||||
## Next steps
|
||||
|
||||
- [x] Station
|
||||
- [ ] Path
|
||||
|
||||
## Fancy features
|
||||
- see when a group starts going to your direction
|
||||
|
@ -9,13 +9,29 @@ CREATE TABLE station (
|
||||
lng REAL
|
||||
);
|
||||
|
||||
CREATE TABLE path (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL -- e.g. 'wiwö'
|
||||
);
|
||||
|
||||
CREATE TABLE path_station (
|
||||
path_id INTEGER,
|
||||
station_id INTEGER,
|
||||
pos INTEGER,
|
||||
PRIMARY KEY (path_id, station_id),
|
||||
FOREIGN KEY (path_id) REFERENCES path(id),
|
||||
FOREIGN KEY (station_id) REFERENCES station(id)
|
||||
);
|
||||
|
||||
CREATE TABLE "group" (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
name TEXT NOT NULL UNIQUE,
|
||||
notes TEXT,
|
||||
amount_people INTEGER,
|
||||
first_station_id INTEGER,
|
||||
first_station_id INTEGER NOT NULL,
|
||||
FOREIGN KEY (first_station_id) REFERENCES station(id)
|
||||
path_id INTEGER NOT NULL,
|
||||
FOREIGN KEY (path_id) REFERENCES path(id)
|
||||
);
|
||||
|
||||
CREATE TABLE group_station (
|
||||
@ -31,16 +47,4 @@ CREATE TABLE group_station (
|
||||
FOREIGN KEY (station_id) REFERENCES station(id)
|
||||
);
|
||||
|
||||
CREATE TABLE path (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE path_station (
|
||||
path_id INTEGER,
|
||||
station_id INTEGER,
|
||||
pos INTEGER,
|
||||
PRIMARY KEY (path_id, station_id),
|
||||
FOREIGN KEY (path_id) REFERENCES path(id),
|
||||
FOREIGN KEY (station_id) REFERENCES station(id)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user