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 976–1,000 of 9,738

entry_scan, page 40 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
97655242015-09-03 11:54:391Bus
97755342015-09-03 11:54:451Bus
97855642015-09-03 11:54:471Bus
97955742015-09-03 11:54:571Bus
98056142015-09-03 11:54:591Bus
98156342015-09-03 11:55:031Bus
98256442015-09-03 11:55:141Bus
98355842015-09-03 11:55:231Bus
98456842015-09-03 11:55:491Bus
98556542015-09-03 11:55:511Bus
98657942015-09-03 11:55:551Bus
98756942015-09-03 11:55:561Bus
98858242015-09-03 11:56:071Bus
98956642015-09-03 11:56:091Bus
99059142015-09-03 11:56:391Bus
99157042015-09-03 11:56:511Bus
99257242015-09-03 11:56:591Bus
99357142015-09-03 11:57:021Bus
99459042015-09-03 11:57:041Bus
99557442015-09-03 11:57:191Bus
99658442015-09-03 11:57:271Bus
99757842015-09-03 11:57:571Bus
99858642015-09-03 11:57:591Bus
99957742015-09-03 11:58:031Bus
100058042015-09-03 11:58:191Bus
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;