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 7,501–7,525 of 9,738

entry_scan, page 301 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7501777242019-03-12 14:57:081Train
7502764012019-03-13 09:24:141Walk
7503764312019-03-13 09:24:191Walk
7504764212019-03-13 09:24:431Walk
7505764112019-03-13 09:24:481Walk
7506780522019-03-14 11:53:201Bus
7507780622019-03-14 11:53:451Bus
7508771452019-03-15 09:08:501Other
7509771352019-03-15 09:09:221Other
7510771552019-03-15 09:09:311Other
7511747712019-03-15 13:00:411Metro
7512747812019-03-15 13:00:471Metro
7513748112019-03-15 13:00:571Metro
7514748312019-03-15 13:01:051Metro
7515748412019-03-15 13:01:091Metro
7516747912019-03-15 13:01:111Metro
7517748012019-03-15 13:01:111Metro
7518748212019-03-15 13:01:211Metro
7519748712019-03-15 13:01:211Metro
7520749112019-03-15 13:01:371Metro
7521748612019-03-15 13:01:441Metro
7522748812019-03-15 13:01:471Metro
7523748512019-03-15 13:02:091Metro
7524749012019-03-15 13:02:511Metro
7525750312019-03-15 13:02:511Metro
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;