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 2,751–2,775 of 9,738

entry_scan, page 111 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2751286852016-10-05 11:22:091Metro
2752286652016-10-05 11:22:321Metro
2753286952016-10-05 11:22:341Metro
2754285412016-10-05 11:55:131Metro
2755287612016-10-06 12:30:311Taxi
2756287512016-10-06 12:30:471Taxi
2757287312016-10-06 12:30:501Taxi
2758287412016-10-06 12:31:051Taxi
2759287732016-10-07 14:59:231Private Vehicle
2760287832016-10-07 14:59:481Private Vehicle
2761288322016-10-08 09:05:241Metro
2762288222016-10-08 09:05:311Metro
2763288612016-10-08 14:01:321Taxi
2764288412016-10-08 14:01:341Taxi
2765288512016-10-08 14:01:491Taxi
2766288512016-10-08 17:05:110NULL
2767288912016-10-09 09:09:391Walk
2768289012016-10-09 09:09:531Walk
2769289212016-10-09 09:10:151Walk
2770289112016-10-09 09:10:161Walk
2771287022016-10-09 10:53:011Bus
2772287122016-10-09 10:53:191Bus
2773287222016-10-09 10:53:281Bus
2774286312016-10-09 11:54:371Walk
2775286212016-10-09 11:55:101Walk
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;