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,651–1,675 of 9,738

entry_scan, page 67 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1651178522016-02-09 13:41:561Metro
1652178742016-02-11 12:23:031Walk
1653179022016-02-13 11:08:511Metro
1654178922016-02-13 11:09:081Metro
1655178822016-02-13 11:09:181Metro
1656179612016-02-14 16:13:421Bus
1657179512016-02-14 16:13:521Bus
1658179712016-02-14 16:14:151Bus
1659179412016-02-14 16:14:311Bus
1660180112016-02-16 09:36:141Walk
1661180012016-02-16 09:36:161Walk
1662179912016-02-16 09:36:311Walk
1663180342016-02-16 16:43:331Walk
1664180442016-02-16 16:43:341Walk
1665180542016-02-16 16:43:481Walk
1666180242016-02-16 16:44:031Walk
1667180642016-02-16 16:44:031Walk
1668179112016-02-17 11:40:341Metro
1669179212016-02-17 11:40:511Metro
1670179312016-02-17 11:41:011Metro
1671181012016-02-17 15:59:001Taxi
1672180912016-02-17 15:59:191Taxi
1673181112016-02-17 15:59:431Taxi
1674181512016-02-18 11:46:101Train
1675181312016-02-18 11:46:131Train
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;