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 176–200 of 9,738

entry_scan, page 8 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1762042015-04-25 10:44:531Bus
1772442015-04-25 10:45:051Bus
1781942015-04-25 10:45:191Bus
1791642015-04-25 10:45:211Bus
1802342015-04-25 10:45:291Bus
1812242015-04-25 10:45:351Bus
1824642015-04-25 10:46:011Bus
1833442015-04-25 10:46:051Bus
1844842015-04-25 10:46:091Bus
1853742015-04-25 10:46:231Bus
1864342015-04-25 10:46:241Bus
1873042015-04-25 10:46:251Bus
1882642015-04-25 10:46:291Bus
1892842015-04-25 10:46:291Bus
1902142015-04-25 10:46:311Bus
1913942015-04-25 10:46:351Bus
1924242015-04-25 10:46:531Bus
1932542015-04-25 10:47:271Bus
1944942015-04-25 10:47:351Bus
1952942015-04-25 10:47:411Bus
1963142015-04-25 10:48:051Bus
1976542015-04-25 10:48:141Bus
1985042015-04-25 10:48:231Bus
1993542015-04-25 10:48:261Bus
2003642015-04-25 10:48:371Bus
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;