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

entry_scan, page 316 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7876813332019-04-26 10:23:381Walk
7877810152019-04-27 11:45:501Walk
7878813212019-04-28 09:33:331Train
7879813112019-04-28 09:33:591Train
7880814152019-04-29 11:51:511Bus
7881814252019-04-29 11:52:331Bus
7882805922019-04-29 12:27:451Metro
7883805722019-04-29 12:27:521Metro
7884806022019-04-29 12:28:291Metro
7885805822019-04-29 12:28:341Metro
7886814512019-04-29 14:43:411Walk
7887814412019-04-29 14:43:541Walk
7888814812019-04-30 10:24:121Walk
7889814712019-04-30 10:24:171Walk
7890814852019-04-30 12:33:100NULL
7891814712019-04-30 12:59:460NULL
7892814922019-04-30 13:12:211Walk
7893815312019-04-30 13:34:571Taxi
7894815412019-04-30 13:35:411Taxi
7895814932019-04-30 15:21:180NULL
7896814632019-05-01 09:08:011Taxi
7897815822019-05-02 11:26:491Metro
7898815722019-05-02 11:26:591Metro
7899808112019-05-03 09:57:571Walk
7900815032019-05-03 10:00:151Bus
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;