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 4,851–4,875 of 9,738

entry_scan, page 195 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4851494532017-12-15 11:53:051Walk
4852494432017-12-15 11:53:181Walk
4853493412017-12-16 09:11:391Walk
4854493312017-12-16 09:11:491Walk
4855492812017-12-16 12:19:091Metro
4856494812017-12-17 09:11:371Bus
4857491412017-12-17 11:21:391Metro
4858491512017-12-17 11:21:411Metro
4859494112017-12-17 11:28:431Walk
4860494012017-12-17 11:28:441Walk
4861494112017-12-17 13:53:210NULL
4862494012017-12-17 14:09:330NULL
4863491812017-12-18 09:44:521Metro
4864491612017-12-18 09:45:161Metro
4865491712017-12-18 09:45:171Metro
4866496112017-12-18 11:03:191Metro
4867496212017-12-18 11:03:251Metro
4868496312017-12-18 12:19:001Metro
4869496512017-12-18 12:19:091Metro
4870496612017-12-18 12:19:211Metro
4871496412017-12-18 12:19:311Metro
4872496912017-12-18 13:36:041Bus
4873496812017-12-18 13:36:161Bus
4874496712017-12-18 13:36:461Bus
4875493512017-12-19 10:53:591Metro
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;