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,001–2,025 of 9,738

entry_scan, page 81 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2001212522016-05-02 10:47:531Metro
2002212422016-05-02 10:48:281Metro
2003213332016-05-03 09:25:121Metro
2004213432016-05-03 09:25:371Metro
2005213512016-05-03 13:45:281Metro
2006208612016-05-04 09:36:171Walk
2007213822016-05-04 10:51:541Metro
2008213722016-05-04 10:52:091Metro
2009213912016-05-04 12:54:141Metro
2010213912016-05-04 14:38:290NULL
2011214322016-05-06 14:01:131Metro
2012214432016-05-06 15:58:521Walk
2013210912016-05-07 12:36:251Walk
2014210812016-05-07 12:36:591Walk
2015211012016-05-07 12:37:021Walk
2016214532016-05-07 13:30:061Walk
2017211212016-05-07 14:10:291Metro
2018211112016-05-07 14:10:491Metro
2019213212016-05-08 14:26:191Bus
2020213112016-05-08 14:26:201Bus
2021220812016-05-10 11:43:431Walk
2022220752016-05-10 11:49:221Other
2023220552016-05-10 11:49:341Other
2024220652016-05-10 11:49:531Other
2025213612016-05-10 13:59:281Metro
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;