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,026–7,050 of 9,738

entry_scan, page 282 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7026722912018-12-13 12:30:211Metro
7027722712018-12-13 12:30:321Metro
7028722612018-12-13 12:30:331Metro
7029723012018-12-13 12:30:391Metro
7030726812018-12-14 10:52:151Bus
7031726912018-12-14 10:52:201Bus
7032726142018-12-14 11:00:401Metro
7033726042018-12-14 11:00:421Metro
7034727222018-12-14 11:49:421Metro
7035727022018-12-14 11:49:431Metro
7036727122018-12-14 11:50:021Metro
7037718252018-12-16 10:14:051Metro
7038718452018-12-16 10:14:231Metro
7039718352018-12-16 10:14:371Metro
7040727712018-12-16 11:09:041Walk
7041727812018-12-16 11:09:221Walk
7042727312018-12-16 12:47:511Metro
7043727512018-12-16 12:48:131Metro
7044727412018-12-16 12:48:271Metro
7045727612018-12-16 12:48:371Metro
7046725312018-12-16 16:09:011Metro
7047728222018-12-16 16:40:501Walk
7048719832018-12-18 09:43:581Walk
7049728322018-12-18 10:06:101Metro
7050724722018-12-18 11:12:001Metro
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;