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 601–625 of 9,738

entry_scan, page 25 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
60177012015-07-10 11:55:241Private Vehicle
60276912015-07-10 11:55:381Private Vehicle
60377212015-07-11 10:01:581Taxi
60477112015-07-11 10:02:101Taxi
60577322015-07-11 10:10:411Walk
60677442015-07-11 11:27:471Metro
60777542015-07-11 11:28:091Metro
60871812015-07-12 10:40:361Metro
60978032015-07-12 14:17:531Metro
61078132015-07-12 14:17:551Metro
61177932015-07-12 14:18:161Metro
61278312015-07-12 14:33:161Private Vehicle
61378212015-07-12 14:33:211Private Vehicle
61478412015-07-12 14:33:211Private Vehicle
61578612015-07-12 14:33:271Private Vehicle
61678512015-07-12 14:33:331Private Vehicle
61777932015-07-12 15:57:210NULL
61878112015-07-12 16:40:580NULL
61978732015-07-13 09:32:541Train
62077832015-07-13 10:05:111Bus
62178922015-07-13 11:20:091Metro
62278822015-07-14 09:58:461Walk
62376112015-07-14 11:37:281Metro
62479032015-07-14 16:47:111Walk
62577722015-07-15 13:28:361Metro
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;