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,651–7,675 of 9,738

entry_scan, page 307 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7651731512019-04-02 10:02:361Bus
7652732212019-04-02 10:02:431Bus
7653732112019-04-02 10:03:121Bus
7654732412019-04-02 10:03:301Bus
7655732012019-04-02 10:03:371Bus
7656732812019-04-02 10:03:571Bus
7657731912019-04-02 10:04:141Bus
7658732712019-04-02 10:04:541Bus
7659732512019-04-02 10:05:451Bus
7660791912019-04-02 10:06:411Walk
7661791812019-04-02 10:07:181Walk
7662788222019-04-03 09:26:581Private Vehicle
7663788322019-04-03 09:26:591Private Vehicle
7664793112019-04-03 12:06:261Walk
7665793012019-04-03 12:07:051Walk
7666788222019-04-03 12:34:330NULL
7667788322019-04-03 13:00:350NULL
7668797442019-04-03 15:56:051Walk
7669797342019-04-03 15:56:241Walk
7670780322019-04-04 09:43:351Metro
7671792812019-04-04 11:46:001Train
7672792612019-04-04 11:46:121Train
7673792712019-04-04 11:46:351Train
7674792912019-04-04 11:46:351Train
7675764912019-04-05 11:04:091Walk
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;