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,576–7,600 of 9,738

entry_scan, page 304 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7576762812019-03-19 10:47:401Other
7577787742019-03-19 13:32:001Bus
7578787642019-03-19 13:32:181Bus
7579781242019-03-19 14:48:091Walk
7580781342019-03-19 14:48:311Walk
7581780412019-03-20 10:20:051Walk
7582779742019-03-20 11:32:361Walk
7583779642019-03-20 11:32:371Walk
7584779542019-03-20 11:32:431Walk
7585787522019-03-20 11:35:031Metro
7586788422019-03-20 14:32:461Metro
7587788522019-03-20 14:32:481Metro
7588780912019-03-21 11:37:211Walk
7589781012019-03-21 11:37:411Walk
7590787852019-03-21 12:48:091Bus
7591787952019-03-21 12:48:131Bus
7592788152019-03-21 12:48:451Bus
7593788052019-03-21 12:48:461Bus
7594788822019-03-21 14:28:451Train
7595788922019-03-21 14:28:541Train
7596780122019-03-22 15:07:021Train
7597780222019-03-22 15:07:071Train
7598789032019-03-24 09:06:281Bus
7599789212019-03-24 09:34:001Metro
7600789312019-03-24 09:34:141Metro
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;