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

entry_scan, page 311 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7751783912019-04-15 12:03:101Bus
7752784212019-04-15 12:03:191Bus
7753784312019-04-15 12:03:261Bus
7754783512019-04-15 12:03:311Bus
7755783612019-04-15 12:03:341Bus
7756785312019-04-15 12:03:441Bus
7757785412019-04-15 12:03:491Bus
7758785012019-04-15 12:03:521Bus
7759784412019-04-15 12:04:071Bus
7760783712019-04-15 12:04:081Bus
7761784012019-04-15 12:04:361Bus
7762785612019-04-15 12:04:571Bus
7763786112019-04-15 12:04:581Bus
7764786312019-04-15 12:05:101Bus
7765786412019-04-15 12:05:161Bus
7766784612019-04-15 12:05:221Bus
7767784512019-04-15 12:05:461Bus
7768784812019-04-15 12:05:461Bus
7769784712019-04-15 12:05:541Bus
7770785212019-04-15 12:06:091Bus
7771787112019-04-15 12:06:281Bus
7772785712019-04-15 12:06:341Bus
7773786712019-04-15 12:06:381Bus
7774785812019-04-15 12:06:441Bus
7775785112019-04-15 12:06:461Bus
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;