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,276–8,300 of 9,738

entry_scan, page 332 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8276844912019-06-29 09:56:451Taxi
8277840912019-06-29 10:28:321Taxi
8278841012019-06-29 10:28:421Taxi
8279832812019-06-29 10:42:191Walk
8280832712019-06-29 10:42:521Walk
8281842022019-06-30 09:57:531Train
8282838112019-06-30 12:08:571Walk
8283838212019-06-30 12:09:061Walk
8284838312019-06-30 12:09:091Walk
8285837912019-06-30 12:09:261Walk
8286842022019-06-30 13:14:100NULL
8287840712019-07-01 13:43:161Train
8288840812019-07-01 13:43:471Train
8289845312019-07-02 09:48:141Walk
8290841112019-07-02 14:49:351Taxi
8291839132019-07-03 10:46:101Metro
8292839432019-07-03 10:46:101Metro
8293839532019-07-03 10:46:141Metro
8294839232019-07-03 10:46:261Metro
8295839332019-07-03 10:46:261Metro
8296846112019-07-04 12:33:071Metro
8297846012019-07-04 12:33:151Metro
8298846212019-07-05 11:27:091Taxi
8299845212019-07-06 11:22:521Walk
8300845112019-07-06 11:23:051Walk
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;