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,726–2,750 of 9,738

entry_scan, page 110 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2726283942016-09-22 15:09:271Metro
2727283842016-09-22 15:09:281Metro
2728280342016-09-22 15:49:221Walk
2729282632016-09-24 10:01:361Private Vehicle
2730278912016-09-24 12:21:251Metro
2731284212016-09-24 13:54:571Walk
2732284312016-09-24 13:55:001Walk
2733284112016-09-24 13:55:141Walk
2734284412016-09-24 13:55:181Walk
2735284512016-09-24 13:55:241Walk
2736284052016-09-24 15:58:401Metro
2737285112016-09-27 09:59:201Walk
2738285012016-09-28 10:33:301Taxi
2739284912016-09-28 10:34:171Taxi
2740284812016-09-28 10:34:191Taxi
2741283142016-09-28 11:02:361Bus
2742283242016-09-28 11:02:401Bus
2743285222016-09-28 11:02:441Metro
2744285322016-09-28 11:03:121Metro
2745282742016-09-29 12:24:181Walk
2746280852016-10-01 10:17:511Bus
2747280752016-10-01 10:18:071Bus
2748280632016-10-02 11:53:541Walk
2749285512016-10-03 10:54:101Metro
2750286752016-10-05 11:22:061Metro
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;