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

entry_scan, page 347 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8651859452019-08-26 11:52:511Walk
8652882912019-08-26 14:03:381Metro
8653883012019-08-26 14:03:511Metro
8654872812019-08-26 15:50:411Private Vehicle
8655872712019-08-26 15:51:131Private Vehicle
8656883912019-08-27 10:14:571Walk
8657883612019-08-27 10:15:011Walk
8658883812019-08-27 10:15:031Walk
8659883512019-08-27 10:15:061Walk
8660883712019-08-27 10:15:201Walk
8661871142019-08-27 10:36:001Metro
8662870222019-08-27 16:09:571Train
8663870322019-08-27 16:10:001Train
8664882352019-08-28 09:28:341Bus
8665882252019-08-28 09:28:401Bus
8666884022019-08-28 10:27:291Walk
8667884222019-08-28 10:27:321Walk
8668884122019-08-28 10:27:351Walk
8669884322019-08-28 10:27:411Walk
8670876832019-08-28 10:54:371Metro
8671876732019-08-28 10:54:391Metro
8672884442019-08-28 11:01:571Bus
8673880212019-08-28 11:27:371Taxi
8674880412019-08-28 11:27:491Taxi
8675880112019-08-28 11:27:561Taxi
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;