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 5,826–5,850 of 9,738

entry_scan, page 234 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5826606812018-07-05 12:25:331Other
5827618232018-07-05 12:55:161Walk
5828617122018-07-06 14:15:561Metro
5829618812018-07-07 09:00:171Taxi
5830618712018-07-07 09:00:381Taxi
5831618912018-07-07 09:00:541Taxi
5832618612018-07-07 09:00:551Taxi
5833609512018-07-07 10:27:041Walk
5834609312018-07-07 10:27:361Walk
5835609412018-07-07 10:27:371Walk
5836594112018-07-07 10:32:321Metro
5837594012018-07-07 10:32:451Metro
5838619112018-07-08 10:26:361Bus
5839619012018-07-08 10:26:431Bus
5840605132018-07-08 10:43:581Walk
5841605032018-07-08 10:44:141Walk
5842619412018-07-09 13:59:521Metro
5843619512018-07-09 14:00:241Metro
5844609232018-07-09 15:54:021Metro
5845609132018-07-09 15:54:151Metro
5846609032018-07-09 15:54:181Metro
5847610032018-07-10 09:36:501Metro
5848619612018-07-10 10:45:051Walk
5849617532018-07-10 11:01:431Walk
5850617432018-07-10 11:01:441Walk
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;