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,551–6,575 of 9,738

entry_scan, page 263 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6551675312018-10-04 09:52:271Metro
6552651842018-10-05 11:42:181Bus
6553652142018-10-05 11:42:301Bus
6554651942018-10-05 11:42:311Bus
6555652042018-10-05 11:42:361Bus
6556652242018-10-05 11:42:461Bus
6557652542018-10-05 11:42:541Bus
6558652442018-10-05 11:43:081Bus
6559653342018-10-05 11:43:281Bus
6560652742018-10-05 11:43:301Bus
6561653542018-10-05 11:43:381Bus
6562653142018-10-05 11:43:421Bus
6563653242018-10-05 11:43:491Bus
6564652642018-10-05 11:43:561Bus
6565654142018-10-05 11:43:581Bus
6566654642018-10-05 11:43:581Bus
6567653642018-10-05 11:44:001Bus
6568654342018-10-05 11:44:081Bus
6569652842018-10-05 11:44:151Bus
6570652942018-10-05 11:44:181Bus
6571655142018-10-05 11:44:181Bus
6572653042018-10-05 11:44:191Bus
6573654842018-10-05 11:44:331Bus
6574655242018-10-05 11:44:531Bus
6575654542018-10-05 11:45:061Bus
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;