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 3,001–3,025 of 9,738

entry_scan, page 121 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3001317322016-12-14 10:39:491Metro
3002317222016-12-14 10:39:591Metro
3003317712016-12-15 09:01:291Metro
3004317812016-12-15 09:01:471Metro
3005316112016-12-15 09:22:451Walk
3006316212016-12-15 09:23:001Walk
3007316312016-12-15 09:23:001Walk
3008313912016-12-15 11:27:321Taxi
3009314112016-12-15 11:27:371Taxi
3010314212016-12-15 11:27:371Taxi
3011313812016-12-15 11:28:031Taxi
3012314012016-12-15 11:28:111Taxi
3013314112016-12-15 13:02:090NULL
3014314212016-12-15 13:35:150NULL
3015313812016-12-15 13:43:070NULL
3016314012016-12-15 14:10:120NULL
3017313952016-12-15 15:00:360NULL
3018317912016-12-15 15:42:091Walk
3019318212016-12-16 14:38:461Walk
3020318312016-12-18 11:45:241Bus
3021318512016-12-18 11:45:481Bus
3022318412016-12-18 11:45:581Bus
3023318522016-12-18 14:07:270NULL
3024318412016-12-18 15:10:320NULL
3025318312016-12-18 15:12:330NULL
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;