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 151–175 of 9,738

entry_scan, page 7 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
15128822015-04-19 11:03:581Walk
15228722015-04-19 11:04:041Walk
15330552015-04-20 10:16:361Walk
15431622015-04-21 16:58:591Walk
15531522015-04-21 16:59:081Walk
15631712015-04-23 09:07:061Walk
15731912015-04-24 13:11:481Metro
15832212015-04-24 16:20:531Metro
15932612015-04-24 16:20:581Metro
16032412015-04-24 16:21:221Metro
16132312015-04-24 16:21:391Metro
16232512015-04-24 16:21:401Metro
16329932015-04-25 09:53:111Metro
16429832015-04-25 09:53:251Metro
165842015-04-25 10:43:291Bus
166942015-04-25 10:43:341Bus
1671042015-04-25 10:43:451Bus
1681142015-04-25 10:44:021Bus
1691842015-04-25 10:44:091Bus
1701442015-04-25 10:44:171Bus
1711542015-04-25 10:44:181Bus
1721242015-04-25 10:44:291Bus
1731342015-04-25 10:44:291Bus
1741742015-04-25 10:44:411Bus
1752742015-04-25 10:44:451Bus
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;