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,826–1,850 of 9,738

entry_scan, page 74 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1826172142016-03-18 12:42:081Bus
1827172342016-03-18 12:42:241Bus
1828172042016-03-18 12:42:261Bus
1829172442016-03-18 12:42:321Bus
1830172942016-03-18 12:43:041Bus
1831173042016-03-18 12:43:121Bus
1832171642016-03-18 12:43:181Bus
1833171842016-03-18 12:43:201Bus
1834173142016-03-18 12:43:201Bus
1835172742016-03-18 12:44:561Bus
1836172842016-03-18 12:45:411Bus
1837195512016-03-19 11:16:481Metro
1838195512016-03-19 14:50:540NULL
1839196312016-03-19 15:20:361Metro
1840196012016-03-19 15:20:591Metro
1841196212016-03-19 15:21:091Metro
1842196112016-03-19 15:21:151Metro
1843196712016-03-20 09:18:441Walk
1844196812016-03-20 09:19:051Walk
1845197412016-03-20 09:37:001Metro
1846197312016-03-20 09:37:401Metro
1847197512016-03-20 09:37:471Metro
1848188022016-03-20 11:25:561Walk
1849188122016-03-20 11:26:061Walk
1850188022016-03-20 14:11:350NULL
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;