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 4,376–4,400 of 9,738

entry_scan, page 176 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4376457042017-09-11 16:09:111Private Vehicle
4377453012017-09-13 10:19:541Metro
4378452812017-09-13 10:20:091Metro
4379452912017-09-13 10:20:191Metro
4380452712017-09-13 10:20:221Metro
4381458122017-09-13 10:34:561Private Vehicle
4382458422017-09-13 10:35:061Private Vehicle
4383458222017-09-13 10:35:101Private Vehicle
4384458322017-09-13 10:35:231Private Vehicle
4385458522017-09-13 10:35:371Private Vehicle
4386458622017-09-13 16:57:251Metro
4387458722017-09-13 16:57:561Metro
4388458922017-09-15 10:16:341Private Vehicle
4389458822017-09-15 10:16:471Private Vehicle
4390455612017-09-15 14:18:191Walk
4391455412017-09-15 14:18:331Walk
4392455812017-09-15 14:18:371Walk
4393455512017-09-15 14:18:451Walk
4394455712017-09-15 14:18:451Walk
4395457832017-09-16 10:06:281Metro
4396458032017-09-16 10:06:491Metro
4397457732017-09-16 10:07:031Metro
4398457932017-09-16 10:07:041Metro
4399463812017-09-17 10:01:331Metro
4400463712017-09-17 10:01: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;