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,401–4,425 of 9,738

entry_scan, page 177 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4401464032017-09-17 12:23:041Metro
4402464232017-09-17 12:23:291Metro
4403464332017-09-17 12:23:301Metro
4404463932017-09-17 12:23:361Metro
4405464132017-09-17 12:23:381Metro
4406456622017-09-18 15:07:561Metro
4407456522017-09-18 15:08:201Metro
4408464512017-09-19 14:26:051Bus
4409464412017-09-19 14:26:061Bus
4410464612017-09-19 14:26:151Bus
4411464922017-09-20 09:58:021Walk
4412465022017-09-20 09:58:451Walk
4413419612017-09-20 12:32:491Other
4414419712017-09-20 12:33:041Other
4415419812017-09-20 12:33:051Other
4416420012017-09-20 12:33:131Other
4417419912017-09-20 12:33:191Other
4418420312017-09-20 12:33:241Other
4419420512017-09-20 12:33:251Other
4420420212017-09-20 12:33:371Other
4421420912017-09-20 12:33:411Other
4422420112017-09-20 12:33:491Other
4423420412017-09-20 12:34:011Other
4424421212017-09-20 12:34:091Other
4425422312017-09-20 12:34:371Other
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;