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,326–1,350 of 9,738

entry_scan, page 54 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1326143112015-11-21 13:09:321Metro
1327150742015-11-21 14:49:471Walk
1328150832015-11-22 09:19:091Metro
1329150552015-11-22 14:51:001Walk
1330150652015-11-22 14:51:081Walk
1331150452015-11-22 14:51:381Walk
1332151012015-11-24 11:47:191Metro
1333150912015-11-24 11:47:391Metro
1334151112015-11-24 11:47:501Metro
1335151252015-11-24 13:49:111Walk
1336151352015-11-24 13:49:311Walk
1337151412015-11-26 13:20:501Walk
1338151522015-11-26 14:16:561Metro
1339151622015-11-26 14:17:011Metro
1340151752015-11-27 10:01:061Walk
1341151952015-11-27 10:01:061Walk
1342152052015-11-27 10:01:071Walk
1343151852015-11-27 10:01:181Walk
1344144042015-11-27 11:13:331Bus
1345143742015-11-27 11:13:351Bus
1346143942015-11-27 11:13:411Bus
1347143842015-11-27 11:13:421Bus
1348152112015-11-27 15:13:491Other
1349152212015-11-27 15:14:001Other
1350152322015-11-28 15:39:421Private Vehicle
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;