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,451–4,475 of 9,738

entry_scan, page 179 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4451423112017-09-20 12:40:591Other
4452423812017-09-20 12:41:131Other
4453423412017-09-20 12:41:411Other
4454423312017-09-20 12:42:041Other
4455423612017-09-20 12:42:091Other
4456453242017-09-22 10:10:261Walk
4457453342017-09-22 10:10:401Walk
4458465712017-09-22 10:57:561Metro
4459465612017-09-22 10:58:441Metro
4460466022017-09-22 14:58:421Taxi
4461466122017-09-22 14:58:561Taxi
4462464712017-09-23 13:50:331Taxi
4463466212017-09-24 09:41:091Walk
4464459312017-09-24 10:04:441Metro
4465459012017-09-24 10:05:051Metro
4466459212017-09-24 10:05:081Metro
4467459112017-09-24 10:05:131Metro
4468457312017-09-24 11:49:081Bus
4469457412017-09-24 11:49:091Bus
4470457612017-09-24 11:49:101Bus
4471457512017-09-24 11:49:531Bus
4472457212017-09-26 10:49:401Train
4473457112017-09-26 10:50:081Train
4474466612017-09-26 11:56:401Private Vehicle
4475466412017-09-26 11:56:491Private Vehicle
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;