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,201–1,225 of 9,738

entry_scan, page 49 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1201134052015-10-19 12:08:151Walk
1202133952015-10-19 12:08:161Walk
1203133812015-10-19 16:43:521Train
1204133712015-10-19 16:44:091Train
1205133612015-10-19 16:44:291Train
1206134412015-10-20 14:59:461Other
1207130712015-10-21 14:30:591Walk
1208130812015-10-21 14:31:101Walk
1209134532015-10-22 10:37:511Bus
1210134612015-10-23 10:53:021Walk
1211134812015-10-23 10:53:071Walk
1212134912015-10-23 10:53:101Walk
1213134712015-10-23 10:53:291Walk
1214135512015-10-25 09:26:431Walk
1215135512015-10-25 12:41:420NULL
1216132242015-10-26 12:24:371Taxi
1217132342015-10-26 12:24:461Taxi
1218126412015-10-26 13:08:411Walk
1219126312015-10-26 13:08:521Walk
1220135012015-10-30 11:35:371Taxi
1221136022015-10-30 11:56:211Metro
1222136112015-10-31 09:37:541Private Vehicle
1223136242015-10-31 09:57:421Bus
1224136342015-10-31 09:58:081Bus
1225136912015-10-31 10:03:551Metro
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;