Database Schema
Schema
When the validator completes running, the database has the following tables:
- input
- type2requests
- type3requests
- accidentAlerts
- tollAlerts
- outputtype2
- outputtype3
- tollAccAlerts
- type2answer
- type3answer
- accAlertNotInOriginal
- accAlertNotInValidator
- tollAlertNotInOriginal
- tollAlertNotInValidator
- type2wronganswers
- accident
- statistics
Table description (*)
- input
. This table contains all of the datapoints of the Linear Road Run.
. Attributes: type, time, carid, speed, expressway, lane, direction,
segment, position, query id, initial segment, end segment, day of the week, minute number in the day, day
- type2requests
. This table cotains the history of every car about account balance queries
. Attributes: type, time, carid, expressway, query id, day
- type3requests
. This table cotains the history of every car about daily expenditure queries
. Attributes: type, time, carid, expressway, query id, day
- accidentAlerts
. This table cotains the output your database generated for accident alerts
. Attributes: type, time, emitted time, carid, segment
. Primary key: time, carid
- tollAlerts
. This table cotains the output your database generated for toll alerts
. Attributes: type, carid, time, emitted time, lav, toll
. Primary key: time, carid
- outputtype2
. This table cotains the output that your database generated answering account balance queries.
. Attributes: type, time, emitted time, query id, result time, balance
- outputtype3
. This table cotains the output that your database generated answering daily expenditure queries.
. Attributes: type, time, emitted time, result time, balance
- tollAccAlerts
. This table cotains all of the toll alerts and accident alerts the validator generated.
. Attributes: time, carid, expressway, direction, segment, lav, toll, accident segment
. Primary key: time, carid
- type2answer
. This table cotains all of account balance the validator generated answering account balance queries.
. Attributes: carid, query time, result time, query id, toll
- type3answer
. This table cotains all of daily expenditure the validator generated answering daily expenditure queries.
. Attributes: carid, day, balance, query id
- accAlertNotInOriginal
. This table cotains accident alerts that the validator generated but yours did not.
. Attributes: time, carid, accident segment
. Primary key: time, carid
- accAlertNotInValidator
. This table cotains accident alerts that your database generated but the validator did not.
. Attributes: time, carid, accident segment
. Primary key: time, carid
- tollAlertNotInOriginal
. This table cotains toll alerts that the validator generated but yours did not.
. Attributes: time, carid
. Primary key: time, carid
- tollAlertNotInValidator
. This table cotains toll alerts that your database generated but the validator did not.
. Attributes: time, carid
. Primary key: time, carid
- type2wronganswers
. This table cotains all of account balance that differ from the validator and yours
. Attributes: type, time, emitted time, query id, result time, balance
- type3wronganswers
. This table cotains all of daily expenditure that differ from the validator and yours
. Attributes: type, time, emitted time, result time, balance
- accident
. This table contains all off the accidents that the validator extracted from input table
. Attributes: first carid, second carid, first minute, last minute, expressway, direction,
segment, position
. Primary key: expressway, direction, position, first minute
- statistics
. This table contains all of statistics information for generating toll alerts and accident alerts.
. Attributes: expressway, direction, segment, minute, number of vehicles in previous minute,
lav, toll, accident, accident segment
. Primary key: expressway, direction, segment, minute
(*): See the detailed description of the attributes in the
paper