-
Notifications
You must be signed in to change notification settings - Fork 2
Database Model
Topvennie edited this page Mar 8, 2023
·
3 revisions
Incoming hardware detection events
column | type | constraints |
---|---|---|
id | integer | primary key |
station_id | integer | fk_station |
baton_id | integer | fk_baton |
timestamp | timestamp | |
rssi | integer | |
battery | float | |
uptime_ms | integer | |
remote_id | integer | |
timestamp_ingestion | timestamp |
All teams
column | type | constraints |
---|---|---|
id | integer | primary key |
name | varchar | |
baton_id | integer | fk_baton |
All batons
column | type | constraints |
---|---|---|
id | integer | primary key |
name | varchar | |
mac | varchar |
Generated by the logic, based on incoming detections.
column | type | constraints |
---|---|---|
id | integer | primary key |
team_id | integer | fk_team |
timestamp | timestamp | |
lap_source_id | integer | fk_lap_source |
manual | boolean |
All stations
column | type | constraints |
---|---|---|
id | integer | primary key |
name | varchar | |
broken | boolean | |
distance_from_start | integer | |
url | varchar | |
coord_x | float | |
coord_y | float |
The different lapper algorithms
column | type | constraints |
---|---|---|
id | integer | primary key |
name | varchar |
Teams switching to a new baton
column | type | constraints |
---|---|---|
id | integer | primary key |
teamid | integer | fk_team |
previousbatonid | integer | fk_baton |
newbatonid | integer | fk_baton |
timestamp | timestamp |
Switchover for lapper algorithms
column | type | constraints |
---|---|---|
id | integer | primary key |
newlapsource | integer | fk_lap_source |
timestamp | timestamp |
column | type | constraints |
---|---|---|
installed_rank_integer | integer | primary key |
version | varchar | |
description | varchar | |
type | varchar | |
script | varchar | |
checksum | integer | |
installed_by | varchar | |
installed_on | timestamp | |
execution_time | integer | |
success | boolean |