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 7,276–7,300 of 9,738

entry_scan, page 292 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7276759852019-02-12 14:32:081Walk
7277759952019-02-12 14:32:261Walk
7278763952019-02-12 14:38:361Metro
7279763852019-02-12 14:38:561Metro
7280745142019-02-12 14:47:411Walk
7281763852019-02-12 16:39:070NULL
7282764412019-02-13 11:24:421Walk
7283758612019-02-14 10:09:431Train
7284744812019-02-14 10:28:491Private Vehicle
7285759312019-02-15 15:15:511Metro
7286759212019-02-15 15:16:241Metro
7287765152019-02-16 10:28:381Walk
7288765212019-02-16 11:57:271Other
7289765312019-02-16 11:57:531Other
7290757812019-02-16 14:50:081Walk
7291765442019-02-16 15:25:271Metro
7292765542019-02-16 15:25:571Metro
7293760432019-02-17 09:49:591Metro
7294760232019-02-17 09:50:181Metro
7295760332019-02-17 09:50:321Metro
7296765732019-02-18 10:39:251Walk
7297765832019-02-18 10:39:441Walk
7298738912019-02-19 09:34:251Bus
7299739012019-02-19 09:34:371Bus
7300739112019-02-19 09:34:431Bus
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;