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

entry_scan, page 313 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7801809622019-04-19 11:45:431Bus
7802809522019-04-19 11:46:171Bus
7803766042019-04-19 13:07:211Bus
7804766142019-04-19 13:07:271Bus
7805766342019-04-19 13:07:331Bus
7806766542019-04-19 13:07:571Bus
7807767342019-04-19 13:08:091Bus
7808767742019-04-19 13:08:091Bus
7809766742019-04-19 13:08:131Bus
7810767842019-04-19 13:08:131Bus
7811768042019-04-19 13:08:171Bus
7812766842019-04-19 13:08:361Bus
7813768142019-04-19 13:08:361Bus
7814767142019-04-19 13:08:381Bus
7815767542019-04-19 13:08:411Bus
7816767042019-04-19 13:08:451Bus
7817768742019-04-19 13:08:451Bus
7818767442019-04-19 13:08:511Bus
7819769142019-04-19 13:09:011Bus
7820769942019-04-19 13:09:251Bus
7821770142019-04-19 13:09:291Bus
7822769342019-04-19 13:09:361Bus
7823768242019-04-19 13:09:451Bus
7824768342019-04-19 13:09:541Bus
7825767642019-04-19 13:09:551Bus
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;