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,876–4,900 of 9,738

entry_scan, page 196 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4876497042017-12-19 11:27:051Bus
4877495232017-12-20 10:27:081Bus
4878495432017-12-20 10:27:131Bus
4879495332017-12-20 10:27:251Bus
4880495532017-12-20 10:27:491Bus
4881494212017-12-20 16:50:511Metro
4882494312017-12-20 16:50:571Metro
4883482622017-12-21 13:24:241Metro
4884482422017-12-21 13:24:301Metro
4885482522017-12-21 13:24:491Metro
4886494742017-12-22 11:51:451Walk
4887498422017-12-23 10:45:001Private Vehicle
4888498222017-12-23 10:45:031Private Vehicle
4889498122017-12-23 10:45:091Private Vehicle
4890498522017-12-23 10:45:141Private Vehicle
4891498322017-12-23 10:45:261Private Vehicle
4892495142017-12-24 09:41:221Bus
4893494942017-12-24 09:41:351Bus
4894495042017-12-24 09:41:571Bus
4895498822017-12-24 10:02:151Walk
4896498922017-12-24 10:02:151Walk
4897498712017-12-24 11:59:471Taxi
4898498612017-12-24 11:59:551Taxi
4899497632017-12-24 13:41:151Walk
4900497732017-12-24 13:41:161Walk
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;