Update schema

Add an enabled option
This commit is contained in:
c0de 2017-06-01 02:13:31 -05:00
parent 13ae4399b2
commit def0eb38eb

3
Schema
View File

@ -27,4 +27,5 @@ cols: id, api_id, time_sent, time_rcvd, latency, data
time_sent - datetime, the unix timestamp the server sends the heartbeat ping (preferably kept in check with GPS or other high accuraacy RTC) time_sent - datetime, the unix timestamp the server sends the heartbeat ping (preferably kept in check with GPS or other high accuraacy RTC)
time_rcvd - datetime, the unix timestamp the server receives the response time_rcvd - datetime, the unix timestamp the server receives the response
latency - long, the number of ms between time_sent and time_rcvd latency - long, the number of ms between time_sent and time_rcvd
data - text json, data that the API sends to the device. This can be used to apply settings immedietly or trigger events in the device data - text json, data that the API sends to the device. This can be used to apply settings immedietly or trigger events in the device
enabled - Bool, whether or not it should send the heartbeat