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

entry_scan, page 24 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
57674922015-07-05 11:50:391Private Vehicle
57770122015-07-05 14:50:161Train
57869822015-07-05 14:50:241Train
57969722015-07-05 14:50:381Train
58069922015-07-05 14:50:441Train
58170022015-07-05 14:51:011Train
58273622015-07-05 16:27:301Private Vehicle
58375522015-07-06 09:14:281Train
58475622015-07-06 09:14:321Train
58574222015-07-06 10:34:411Metro
58674122015-07-06 10:35:071Metro
58775752015-07-06 11:24:361Metro
58874112015-07-06 12:49:530NULL
58974222015-07-06 13:39:510NULL
59074312015-07-06 16:43:251Walk
59174412015-07-06 16:43:391Walk
59275812015-07-07 12:33:181Metro
59373212015-07-07 15:48:041Train
59476052015-07-08 12:49:111Walk
59575952015-07-08 12:49:171Walk
59676242015-07-09 10:58:541Walk
59776342015-07-09 10:59:431Walk
59876712015-07-10 10:48:041Private Vehicle
59976612015-07-10 10:48:451Private Vehicle
60076812015-07-10 11:55:141Private Vehicle
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;