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 6,301–6,325 of 9,738

entry_scan, page 253 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6301655912018-08-27 10:28:341Walk
6302573712018-08-27 10:28:391Bus
6303573312018-08-27 10:28:421Bus
6304571812018-08-27 10:28:541Bus
6305571912018-08-27 10:29:001Bus
6306572812018-08-27 10:29:141Bus
6307572212018-08-27 10:29:391Bus
6308572312018-08-27 10:29:421Bus
6309573512018-08-27 10:30:041Bus
6310573012018-08-27 10:30:061Bus
6311572912018-08-27 10:30:391Bus
6312573212018-08-27 10:30:521Bus
6313573612018-08-27 10:31:541Bus
6314656722018-08-27 15:46:501Private Vehicle
6315657312018-08-29 11:37:191Walk
6316647012018-08-29 12:08:251Bus
6317646912018-08-29 12:08:531Bus
6318583442018-08-29 13:45:111Bus
6319583542018-08-29 13:45:181Bus
6320583642018-08-29 13:45:211Bus
6321583742018-08-29 13:45:321Bus
6322584142018-08-29 13:45:391Bus
6323583842018-08-29 13:45:431Bus
6324584242018-08-29 13:45:431Bus
6325583942018-08-29 13:45:561Bus
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;