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 3,576–3,600 of 9,738

entry_scan, page 144 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3576374912017-04-14 11:22:381Walk
3577374812017-04-14 11:22:551Walk
3578375112017-04-14 11:22:591Walk
3579375552017-04-14 13:24:071Walk
3580375452017-04-14 13:24:141Walk
3581375352017-04-14 13:24:411Walk
3582375652017-04-14 13:24:441Walk
3583377112017-04-15 11:06:181Walk
3584372012017-04-16 11:58:301Bus
3585375722017-04-18 09:22:031Metro
3586373512017-04-18 12:33:481Metro
3587373612017-04-18 12:33:501Metro
3588376652017-04-19 09:57:501Bus
3589376142017-04-19 10:29:321Walk
3590376012017-04-19 12:31:581Walk
3591375912017-04-19 12:32:071Walk
3592373922017-04-19 14:25:331Private Vehicle
3593374022017-04-19 14:25:411Private Vehicle
3594373822017-04-19 14:25:551Private Vehicle
3595381342017-04-19 16:36:591Taxi
3596378012017-04-20 10:26:461Walk
3597377912017-04-20 10:27:071Walk
3598378112017-04-20 10:27:101Walk
3599378212017-04-20 10:27:221Walk
3600377312017-04-20 12:36:141Walk
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;