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

entry_scan, page 104 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2576266722016-08-20 11:12:151Metro
2577266822016-08-20 11:12:211Metro
2578263212016-08-20 15:22:341Bus
2579263112016-08-20 15:22:371Bus
2580263312016-08-20 15:23:031Bus
2581267512016-08-21 10:35:201Walk
2582267112016-08-21 10:35:261Walk
2583267412016-08-21 10:35:361Walk
2584267312016-08-21 10:35:461Walk
2585267212016-08-21 10:35:481Walk
2586267212016-08-21 12:10:430NULL
2587267312016-08-21 13:24:150NULL
2588267412016-08-21 13:24:540NULL
2589267122016-08-21 13:38:370NULL
2590266942016-08-21 13:44:531Other
2591267042016-08-21 13:45:071Other
2592267512016-08-21 14:06:020NULL
2593267912016-08-21 14:28:341Metro
2594267612016-08-21 14:28:351Metro
2595268012016-08-21 14:28:381Metro
2596267812016-08-21 14:29:001Metro
2597267712016-08-21 14:29:071Metro
2598265352016-08-21 14:31:471Taxi
2599265922016-08-23 12:32:421Metro
2600266022016-08-23 12:32:501Metro
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;