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 6,151–6,175 of 9,738

entry_scan, page 247 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6151644332018-08-12 15:00:161Walk
6152644432018-08-12 15:00:311Walk
6153644632018-08-12 15:00:311Walk
6154643522018-08-12 15:37:051Walk
6155643622018-08-12 15:37:311Walk
6156643452018-08-13 09:41:121Walk
6157642052018-08-13 10:28:001Walk
6158641852018-08-13 10:28:051Walk
6159642152018-08-13 10:28:071Walk
6160642252018-08-13 10:28:111Walk
6161641952018-08-13 10:28:301Walk
6162646432018-08-13 11:46:261Bus
6163646532018-08-13 11:46:571Bus
6164646532018-08-13 15:15:490NULL
6165646432018-08-13 15:30:420NULL
6166646712018-08-14 11:18:441Metro
6167646812018-08-14 11:18:491Metro
6168626232018-08-14 12:41:541Walk
6169633712018-08-14 14:15:461Metro
6170645112018-08-15 16:23:091Walk
6171645212018-08-15 16:23:141Walk
6172647512018-08-16 12:40:371Train
6173647232018-08-16 13:20:451Taxi
6174647332018-08-16 13:20:541Taxi
6175647132018-08-16 13:20:561Taxi
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;