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 8,251–8,275 of 9,738

entry_scan, page 331 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8251841222019-06-25 10:12:191Train
8252841422019-06-25 10:12:191Train
8253841522019-06-25 10:12:201Train
8254841322019-06-25 10:12:551Train
8255828342019-06-25 10:56:161Bus
8256843122019-06-25 10:59:361Metro
8257843222019-06-25 10:59:581Metro
8258843022019-06-25 11:00:081Metro
8259843512019-06-26 14:36:111Walk
8260842512019-06-27 11:46:341Walk
8261842312019-06-27 11:47:051Walk
8262842412019-06-27 11:47:051Walk
8263842612019-06-27 11:47:111Walk
8264844042019-06-27 14:19:061Metro
8265843942019-06-27 14:19:221Metro
8266844142019-06-27 14:19:251Metro
8267843842019-06-27 14:19:361Metro
8268842152019-06-28 10:31:381Private Vehicle
8269842252019-06-28 10:31:431Private Vehicle
8270844212019-06-28 13:01:421Walk
8271844312019-06-28 13:02:031Walk
8272842712019-06-28 14:11:231Metro
8273842812019-06-28 14:11:541Metro
8274845012019-06-29 09:56:141Taxi
8275844812019-06-29 09:56:361Taxi
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;