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,701–1,725 of 9,738

entry_scan, page 69 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1701174522016-02-27 11:40:051Private Vehicle
1702183312016-02-27 13:24:311Metro
1703183412016-02-27 13:24:331Metro
1704183512016-02-27 13:24:381Metro
1705183612016-02-27 13:24:441Metro
1706183212016-02-27 13:25:031Metro
1707184242016-02-29 13:57:571Walk
1708184142016-02-29 13:58:171Walk
1709184042016-02-29 13:58:291Walk
1710184342016-02-29 13:58:441Walk
1711184912016-03-02 09:49:371Walk
1712184612016-03-02 09:49:441Walk
1713184812016-03-02 09:49:511Walk
1714184712016-03-02 09:50:121Walk
1715185112016-03-02 16:48:171Metro
1716185012016-03-02 16:48:291Metro
1717146212016-03-03 10:34:191Bus
1718146312016-03-03 10:34:321Bus
1719146412016-03-03 10:34:371Bus
1720146512016-03-03 10:34:491Bus
1721146712016-03-03 10:35:041Bus
1722146612016-03-03 10:35:071Bus
1723146912016-03-03 10:35:081Bus
1724146812016-03-03 10:35:311Bus
1725147012016-03-03 10:35:311Bus
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;