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 8,826–8,850 of 9,738

entry_scan, page 354 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8826912522019-10-03 09:09:501Metro
8827912222019-10-03 09:10:011Metro
8828912422019-10-03 09:10:141Metro
8829910412019-10-03 09:24:311Walk
8830910512019-10-03 09:24:381Walk
8831910612019-10-03 09:24:491Walk
8832902012019-10-03 09:47:231Walk
8833902212019-10-03 09:47:321Walk
8834901912019-10-03 09:47:341Walk
8835902112019-10-03 09:47:341Walk
8836913412019-10-03 10:58:001Bus
8837913312019-10-03 10:58:341Bus
8838909422019-10-04 10:58:001Metro
8839909522019-10-04 10:58:041Metro
8840911622019-10-05 09:49:491Metro
8841911622019-10-05 12:26:060NULL
8842913142019-10-05 13:48:361Train
8843913242019-10-05 13:49:071Train
8844914312019-10-06 12:53:351Walk
8845914212019-10-06 12:53:511Walk
8846914012019-10-07 09:18:391Walk
8847914112019-10-07 09:18:421Walk
8848885112019-10-07 10:18:301Other
8849884812019-10-07 10:18:561Other
8850884912019-10-07 10:18:591Other
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;