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,926–2,950 of 9,738

entry_scan, page 118 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2926303612016-11-20 11:48:481Walk
2927303512016-11-20 11:48:491Walk
2928303812016-11-20 13:08:081Taxi
2929303712016-11-20 13:08:261Taxi
2930303912016-11-20 13:42:301Bus
2931303912016-11-20 16:06:380NULL
2932304012016-11-21 14:33:481Metro
2933304112016-11-21 14:34:161Metro
2934304222016-11-21 15:01:121Metro
2935304542016-11-22 14:22:031Metro
2936304642016-11-22 14:22:181Metro
2937304342016-11-22 14:22:251Metro
2938304442016-11-22 14:22:311Metro
2939302922016-11-23 10:06:261Metro
2940303022016-11-23 10:06:301Metro
2941302822016-11-23 10:07:141Metro
2942304742016-11-23 10:20:461Walk
2943304912016-11-24 10:20:001Walk
2944305112016-11-24 10:20:061Walk
2945305012016-11-24 10:20:361Walk
2946305222016-11-24 11:29:051Metro
2947301242016-11-24 14:32:351Walk
2948305352016-11-25 10:18:251Walk
2949305452016-11-25 10:19:031Walk
2950306012016-11-25 14:44:511Bus
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;