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,526–8,550 of 9,738

entry_scan, page 342 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8526866722019-08-04 15:06:551Bus
8527866622019-08-04 15:06:561Bus
8528866822019-08-04 15:07:301Bus
8529870922019-08-05 10:39:421Bus
8530859812019-08-05 11:13:211Bus
8531869722019-08-05 13:34:061Metro
8532869622019-08-05 13:34:081Metro
8533865212019-08-06 09:23:471Walk
8534865312019-08-06 09:24:111Walk
8535871212019-08-06 09:36:421Metro
8536871312019-08-06 09:37:001Metro
8537859052019-08-06 11:59:471Bus
8538859252019-08-06 11:59:581Bus
8539859352019-08-06 12:00:001Bus
8540859152019-08-06 12:00:121Bus
8541871622019-08-06 13:03:151Walk
8542871422019-08-06 13:03:341Walk
8543871522019-08-06 13:03:541Walk
8544870512019-08-06 14:21:051Bus
8545870812019-08-06 14:21:111Bus
8546870612019-08-06 14:21:121Bus
8547870712019-08-06 14:21:211Bus
8548863932019-08-06 14:56:221Bus
8549863732019-08-06 14:56:231Bus
8550863832019-08-06 14:56:471Bus
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;