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 4,126–4,150 of 9,738

entry_scan, page 166 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4126429612017-07-23 11:01:001Walk
4127429712017-07-23 11:01:121Walk
4128428732017-07-24 11:26:221Bus
4129428632017-07-24 11:26:291Bus
4130428832017-07-24 11:26:341Bus
4131428832017-07-24 13:41:290NULL
4132428632017-07-24 14:11:090NULL
4133428712017-07-24 15:07:150NULL
4134430422017-07-25 10:21:031Metro
4135430322017-07-25 10:21:091Metro
4136427112017-07-25 11:40:301Metro
4137427012017-07-25 11:40:371Metro
4138426912017-07-25 11:52:551Private Vehicle
4139426812017-07-25 11:53:281Private Vehicle
4140427932017-07-27 11:29:021Walk
4141427832017-07-27 11:29:261Walk
4142429512017-07-27 16:37:141Train
4143430612017-07-28 10:18:541Other
4144430712017-07-28 10:19:221Other
4145431152017-07-28 11:44:471Walk
4146431252017-07-28 11:44:541Walk
4147431012017-07-28 13:14:271Walk
4148431342017-07-28 13:52:041Metro
4149430952017-07-28 15:37:141Walk
4150430542017-07-29 10:22:171Walk
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;