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 4,801–4,825 of 9,738

entry_scan, page 193 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4801487922017-11-25 16:39:021Metro
4802488022017-11-25 16:39:171Metro
4803489412017-11-26 10:35:151Metro
4804489312017-11-26 10:35:221Metro
4805489642017-11-26 14:28:351Private Vehicle
4806489542017-11-26 14:28:391Private Vehicle
4807489752017-11-26 15:48:391Walk
4808489542017-11-26 16:27:210NULL
4809489812017-11-28 12:20:401Private Vehicle
4810489912017-11-28 12:21:011Private Vehicle
4811490022017-11-28 14:18:581Metro
4812490122017-11-29 13:26:021Metro
4813490212017-12-01 11:51:221Metro
4814490312017-12-01 11:51:321Metro
4815490412017-12-01 11:51:391Metro
4816490512017-12-01 11:51:571Metro
4817490722017-12-01 12:09:051Walk
4818491022017-12-01 12:09:181Walk
4819490922017-12-01 12:09:361Walk
4820490822017-12-01 12:09:541Walk
4821483812017-12-04 10:55:191Metro
4822483712017-12-04 10:55:241Metro
4823491212017-12-06 11:21:021Other
4824491312017-12-06 11:21:311Other
4825491912017-12-07 09:17:201Walk
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;