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 5,751–5,775 of 9,738

entry_scan, page 231 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5751605722018-06-17 12:27:151Metro
5752605922018-06-17 12:27:181Metro
5753602722018-06-17 13:24:580NULL
5754602612018-06-17 15:03:500NULL
5755586512018-06-17 15:53:191Train
5756586712018-06-17 15:53:251Train
5757586612018-06-17 15:53:391Train
5758606112018-06-18 15:58:021Bus
5759606012018-06-18 15:58:311Bus
5760606212018-06-19 10:33:521Metro
5761606312018-06-19 10:33:581Metro
5762595752018-06-20 10:45:211Walk
5763595852018-06-20 10:45:231Walk
5764606712018-06-21 09:20:511Walk
5765606612018-06-21 09:20:571Walk
5766607122018-06-21 11:47:121Bus
5767607252018-06-22 14:16:001Walk
5768605512018-06-22 14:39:281Walk
5769605412018-06-22 14:39:311Walk
5770607012018-06-23 09:12:331Bus
5771601922018-06-23 13:59:311Metro
5772601822018-06-23 13:59:411Metro
5773602022018-06-23 13:59:411Metro
5774588952018-06-24 09:42:011Walk
5775588652018-06-24 09:42:101Walk
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;