Skip to content
Louvre Ops DB

Table

entry_scan

Every entrance scan; only the first of the day records how the visitor travelled.

Replaces in 2020: Entrance, Ticket.Transportation

Rows 5,676–5,700 of 9,738

entry_scan, page 228 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5676582212018-06-01 10:32:191Train
5677581722018-06-01 11:45:551Walk
5678589222018-06-02 10:48:091Metro
5679589122018-06-02 10:48:181Metro
5680588542018-06-02 11:40:281Walk
5681581332018-06-02 11:44:111Private Vehicle
5682581432018-06-02 11:44:381Private Vehicle
5683579512018-06-02 12:34:521Walk
5684579612018-06-02 12:35:261Walk
5685589312018-06-02 14:06:021Bus
5686588522018-06-02 14:06:420NULL
5687589412018-06-04 10:03:121Walk
5688589512018-06-04 10:03:171Walk
5689593912018-06-04 10:32:441Bus
5690570512018-06-04 11:52:001Taxi
5691587812018-06-05 13:31:141Metro
5692588112018-06-05 13:31:291Metro
5693587912018-06-05 13:31:501Metro
5694588012018-06-05 13:31:591Metro
5695594552018-06-06 12:32:391Private Vehicle
5696594452018-06-06 12:32:401Private Vehicle
5697594352018-06-06 12:32:481Private Vehicle
5698594252018-06-06 12:33:021Private Vehicle
5699595412018-06-07 10:48:001Metro
5700595512018-06-07 10:48:171Metro
Table definition
CREATE TABLE entry_scan (
  scan_id        INTEGER PRIMARY KEY,
  ticket_id      INTEGER NOT NULL REFERENCES ticket (ticket_id),
  entrance_id    INTEGER NOT NULL REFERENCES entrance (entrance_id),
  scanned_at     TEXT NOT NULL,
  is_first_entry INTEGER NOT NULL CHECK (is_first_entry IN (0, 1)),
  transport_mode TEXT CHECK (transport_mode IN ('Walk', 'Metro', 'Train', 'Bus', 'Taxi', 'Private Vehicle', 'Other')),
  CHECK ((is_first_entry = 1) = (transport_mode IS NOT NULL))
) STRICT;