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 2,051–2,075 of 9,738

entry_scan, page 83 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2051205112016-05-18 10:10:021Metro
2052205212016-05-18 10:10:441Metro
2053227812016-05-18 11:26:011Walk
2054227912016-05-18 11:26:021Walk
2055219812016-05-18 11:56:391Walk
2056219912016-05-18 11:56:421Walk
2057228042016-05-18 14:37:171Walk
2058228142016-05-18 14:37:171Walk
2059226422016-05-20 10:36:241Metro
2060226222016-05-20 10:36:401Metro
2061226322016-05-20 10:36:461Metro
2062227212016-05-21 11:55:431Walk
2063227312016-05-21 11:55:441Walk
2064227112016-05-21 11:56:151Walk
2065225852016-05-21 13:54:251Walk
2066227432016-05-22 13:34:271Metro
2067227532016-05-22 13:34:291Metro
2068227732016-05-22 13:34:551Metro
2069227632016-05-22 13:35:031Metro
2070227012016-05-23 09:11:261Train
2071226912016-05-23 09:11:591Train
2072214012016-05-25 10:26:541Walk
2073214212016-05-25 10:26:571Walk
2074228822016-05-25 10:26:581Private Vehicle
2075214112016-05-25 10:26:591Walk
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;