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

entry_scan, page 41 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
100157342015-09-03 11:58:241Bus
100258342015-09-03 11:58:291Bus
100358142015-09-03 11:58:301Bus
100458842015-09-03 11:58:421Bus
100559242015-09-03 11:58:471Bus
100658942015-09-03 12:00:151Bus
100758742015-09-03 12:00:171Bus
100859642015-09-03 12:00:291Bus
100959442015-09-03 12:01:481Bus
101059342015-09-03 12:02:391Bus
101159542015-09-03 12:03:091Bus
1012106712015-09-04 10:02:321Metro
1013106352015-09-04 11:47:371Metro
1014106252015-09-04 11:47:531Metro
1015106812015-09-05 11:32:361Metro
1016102542015-09-05 14:01:171Metro
1017102342015-09-05 14:01:261Metro
1018102442015-09-05 14:01:301Metro
1019102642015-09-05 14:01:311Metro
1020106922015-09-05 14:22:521Metro
102198912015-09-06 16:29:471Walk
1022107342015-09-07 14:35:521Metro
1023107242015-09-07 14:36:151Metro
1024102112015-09-08 14:36:571Metro
1025102012015-09-08 14:37:141Metro
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;