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 351–375 of 9,738

entry_scan, page 15 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
35132152015-05-22 10:37:551Taxi
35260412015-05-22 11:28:061Bus
35360312015-05-22 11:28:181Bus
35444412015-05-22 14:04:101Metro
35544612015-05-22 14:04:151Metro
35644512015-05-22 14:04:291Metro
35760512015-05-22 15:33:501Walk
35860642015-05-23 10:40:521Walk
35960922015-05-24 09:36:201Metro
36060822015-05-24 09:36:221Metro
36153152015-05-24 10:30:181Bus
36253052015-05-24 10:30:431Bus
36352952015-05-24 10:30:531Bus
36444822015-05-25 10:54:571Taxi
36545022015-05-25 10:55:041Taxi
36645122015-05-25 10:55:281Taxi
36744722015-05-25 10:55:311Taxi
36844922015-05-25 10:55:441Taxi
36961152015-05-25 15:36:181Walk
37061212015-05-25 15:45:451Walk
37161312015-05-25 15:45:521Walk
37261412015-05-25 15:46:101Walk
37311342015-05-28 09:59:451Bus
37411442015-05-28 09:59:591Bus
37511542015-05-28 10:00:091Bus
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;