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

entry_scan, page 339 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8451847312019-07-25 12:18:581Metro
8452846912019-07-25 12:19:021Metro
8453846812019-07-25 12:19:031Metro
8454847412019-07-25 12:19:031Metro
8455848012019-07-25 12:19:161Metro
8456847512019-07-25 12:19:201Metro
8457848212019-07-25 12:19:241Metro
8458848812019-07-25 12:19:481Metro
8459847012019-07-25 12:19:531Metro
8460848412019-07-25 12:19:531Metro
8461847812019-07-25 12:20:231Metro
8462847612019-07-25 12:20:311Metro
8463848112019-07-25 12:20:321Metro
8464849312019-07-25 12:20:381Metro
8465847912019-07-25 12:20:481Metro
8466849212019-07-25 12:21:021Metro
8467847712019-07-25 12:21:101Metro
8468848712019-07-25 12:21:441Metro
8469848312019-07-25 12:21:481Metro
8470848612019-07-25 12:22:441Metro
8471848512019-07-25 12:23:381Metro
8472849112019-07-25 12:23:441Metro
8473848912019-07-25 12:23:461Metro
8474849012019-07-25 12:24:261Metro
8475863212019-07-25 12:56:411Bus
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;