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

entry_scan, page 390 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9726982612020-02-23 14:42:421Other
9727982512020-02-23 14:42:451Other
9728980912020-02-24 11:56:411Bus
9729981012020-02-24 11:56:421Bus
9730980812020-02-24 11:56:551Bus
9731980712020-02-24 11:57:111Bus
9732983422020-02-24 15:48:211Metro
9733983322020-02-24 15:48:271Metro
9734983522020-02-24 15:48:271Metro
9735983742020-02-27 14:34:551Walk
9736983612020-02-29 09:44:201Walk
9737983812020-02-29 11:05:011Walk
9738983912020-02-29 11:05:341Walk
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;