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,576–1,600 of 9,738

entry_scan, page 64 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1576168132016-01-05 11:04:461Metro
1577168232016-01-05 11:04:521Metro
1578167712016-01-05 16:19:051Walk
1579167512016-01-05 16:19:271Walk
1580167412016-01-05 16:19:321Walk
1581167612016-01-05 16:19:321Walk
1582168442016-01-06 10:15:241Metro
1583165112016-01-06 11:00:131Metro
1584163422016-01-07 11:45:291Bus
1585168522016-01-09 14:54:441Taxi
1586173222016-01-10 12:20:171Metro
1587167842016-01-11 11:32:481Walk
1588167942016-01-11 11:32:541Walk
1589168042016-01-11 11:33:041Walk
1590173342016-01-12 11:10:041Bus
1591173442016-01-12 11:10:241Bus
1592166432016-01-12 11:43:361Walk
1593166132016-01-12 11:43:411Walk
1594166332016-01-12 11:43:431Walk
1595166032016-01-12 11:43:501Walk
1596166232016-01-12 11:43:591Walk
1597166522016-01-13 16:02:121Private Vehicle
1598166622016-01-13 16:02:191Private Vehicle
1599160812016-01-15 15:01:501Metro
1600160912016-01-15 15:02:181Metro
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;