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 9,676–9,700 of 9,738

entry_scan, page 388 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9676979112020-02-11 13:37:551Metro
9677979612020-02-13 13:44:481Walk
9678979512020-02-13 13:44:581Walk
9679977342020-02-15 09:36:551Taxi
9680980422020-02-15 09:40:191Walk
9681979432020-02-15 11:02:251Walk
9682979232020-02-15 11:02:441Walk
9683979332020-02-15 11:02:441Walk
9684977412020-02-15 11:46:491Walk
9685981332020-02-16 15:17:451Metro
9686978022020-02-16 16:07:191Metro
9687977922020-02-16 16:07:321Metro
9688981412020-02-17 09:15:431Metro
9689981512020-02-17 09:15:471Metro
9690980212020-02-17 10:54:291Walk
9691980312020-02-17 10:54:371Walk
9692969122020-02-17 11:37:141Private Vehicle
9693969222020-02-17 11:37:301Private Vehicle
9694969022020-02-17 11:37:561Private Vehicle
9695981122020-02-17 12:03:161Train
9696981712020-02-17 13:44:001Walk
9697981612020-02-17 13:44:161Walk
9698981812020-02-17 13:44:271Walk
9699980652020-02-18 10:28:351Metro
9700980552020-02-18 10:28:361Metro
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;