rename to route
This commit is contained in:
parent
af2e6d72a5
commit
c089291f35
@ -7,7 +7,7 @@
|
|||||||
## Next steps
|
## Next steps
|
||||||
|
|
||||||
- [x] Station
|
- [x] Station
|
||||||
- [ ] Path
|
- [ ] Route
|
||||||
|
|
||||||
## Fancy features
|
## Fancy features
|
||||||
- see when a group starts going to your direction
|
- see when a group starts going to your direction
|
||||||
|
@ -9,17 +9,17 @@ CREATE TABLE station (
|
|||||||
lng REAL
|
lng REAL
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE path (
|
CREATE TABLE route (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
name TEXT NOT NULL -- e.g. 'wiwö'
|
name TEXT NOT NULL -- e.g. 'wiwö'
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE path_station (
|
CREATE TABLE route_station (
|
||||||
path_id INTEGER,
|
route_id INTEGER,
|
||||||
station_id INTEGER,
|
station_id INTEGER,
|
||||||
pos INTEGER,
|
pos INTEGER,
|
||||||
PRIMARY KEY (path_id, station_id),
|
PRIMARY KEY (route_id, station_id),
|
||||||
FOREIGN KEY (path_id) REFERENCES path(id),
|
FOREIGN KEY (route_id) REFERENCES route(id),
|
||||||
FOREIGN KEY (station_id) REFERENCES station(id)
|
FOREIGN KEY (station_id) REFERENCES station(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -30,8 +30,8 @@ CREATE TABLE "group" (
|
|||||||
amount_people INTEGER,
|
amount_people INTEGER,
|
||||||
first_station_id INTEGER NOT NULL,
|
first_station_id INTEGER NOT NULL,
|
||||||
FOREIGN KEY (first_station_id) REFERENCES station(id)
|
FOREIGN KEY (first_station_id) REFERENCES station(id)
|
||||||
path_id INTEGER NOT NULL,
|
route_id INTEGER NOT NULL,
|
||||||
FOREIGN KEY (path_id) REFERENCES path(id)
|
FOREIGN KEY (route_id) REFERENCES route(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE group_station (
|
CREATE TABLE group_station (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user