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

entry_scan, page 286 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7126667912018-12-24 10:30:081Bus
7127665612018-12-24 10:30:101Bus
7128667612018-12-24 10:30:351Bus
7129666712018-12-24 10:30:381Bus
7130666112018-12-24 10:30:441Bus
7131666212018-12-24 10:30:571Bus
7132665812018-12-24 10:31:111Bus
7133668212018-12-24 10:31:291Bus
7134667412018-12-24 10:31:551Bus
7135668012018-12-24 10:32:061Bus
7136667712018-12-24 10:32:281Bus
7137667512018-12-24 10:32:561Bus
7138668312018-12-24 10:36:281Bus
7139732922018-12-24 11:14:331Metro
7140733352018-12-25 14:31:001Walk
7141733452018-12-25 14:31:251Walk
7142733252018-12-25 14:31:271Walk
7143733252018-12-25 17:09:000NULL
7144733322018-12-25 17:10:480NULL
7145735042018-12-26 10:36:171Walk
7146734842018-12-26 10:36:221Walk
7147734942018-12-26 10:36:311Walk
7148735142018-12-26 10:36:341Walk
7149735642018-12-26 13:22:301Metro
7150735742018-12-26 13:22:341Metro
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;