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,701–6,725 of 9,738

entry_scan, page 269 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6701615542018-10-25 10:05:461Bus
6702616142018-10-25 10:06:131Bus
6703615742018-10-25 10:06:331Bus
6704616342018-10-25 10:06:371Bus
6705669812018-10-25 14:21:271Walk
6706669712018-10-25 14:21:341Walk
6707669912018-10-25 14:21:571Walk
6708691522018-10-26 09:49:571Other
6709691322018-10-26 09:50:021Other
6710691222018-10-26 09:50:031Other
6711691422018-10-26 09:50:091Other
6712691642018-10-26 14:28:261Metro
6713691912018-10-26 15:04:031Other
6714692012018-10-26 15:04:101Other
6715691712018-10-26 15:04:251Other
6716691812018-10-26 15:04:251Other
6717688812018-10-27 15:11:021Bus
6718692112018-10-27 15:35:361Private Vehicle
6719692212018-10-27 15:35:381Private Vehicle
6720692612018-10-27 16:29:271Private Vehicle
6721692512018-10-27 16:29:291Private Vehicle
6722687912018-10-28 10:23:561Train
6723687812018-10-28 10:24:011Train
6724693012018-10-28 12:06:531Bus
6725692812018-10-28 12:07:051Bus
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;