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,676–1,700 of 9,738

entry_scan, page 68 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1676181212016-02-18 11:46:181Train
1677181412016-02-18 11:46:181Train
1678177812016-02-18 13:26:561Metro
1679181812016-02-18 15:32:031Other
1680181712016-02-18 15:32:251Other
1681181912016-02-18 15:32:371Other
1682181612016-02-18 15:32:451Other
1683177812016-02-18 17:25:520NULL
1684182212016-02-19 10:36:341Walk
1685182012016-02-19 10:36:421Walk
1686182112016-02-19 10:36:471Walk
1687182512016-02-19 16:47:421Metro
1688182652016-02-20 11:46:131Metro
1689180742016-02-22 12:12:221Other
1690183052016-02-23 10:45:421Walk
1691182952016-02-23 10:45:461Walk
1692182752016-02-23 10:45:531Walk
1693182852016-02-23 10:46:001Walk
1694183112016-02-25 13:35:181Walk
1695183132016-02-25 16:11:360NULL
1696177312016-02-26 10:53:321Bus
1697174422016-02-27 11:39:281Private Vehicle
1698174822016-02-27 11:39:541Private Vehicle
1699174722016-02-27 11:39:581Private Vehicle
1700174622016-02-27 11:39:591Private 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;