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 6,351–6,375 of 9,738

entry_scan, page 255 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6351658052018-08-30 09:32:531Bus
6352658252018-08-30 09:33:021Bus
6353658152018-08-30 09:33:031Bus
6354658612018-08-30 11:08:451Bus
6355658512018-08-30 11:08:531Bus
6356659412018-08-31 09:45:081Metro
6357635742018-08-31 09:45:131Walk
6358659512018-08-31 09:45:161Metro
6359635842018-08-31 09:45:241Walk
6360635942018-08-31 09:45:251Walk
6361659612018-08-31 09:45:251Metro
6362659312018-08-31 09:45:371Metro
6363636242018-08-31 09:45:381Walk
6364636042018-08-31 09:45:431Walk
6365659712018-08-31 09:45:441Metro
6366636142018-08-31 09:45:531Walk
6367636542018-08-31 09:45:531Walk
6368636642018-08-31 09:45:581Walk
6369636742018-08-31 09:46:131Walk
6370636342018-08-31 09:46:311Walk
6371637842018-08-31 09:46:371Walk
6372636842018-08-31 09:46:411Walk
6373636442018-08-31 09:46:511Walk
6374637542018-08-31 09:47:011Walk
6375638442018-08-31 09:47:011Walk
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;