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 5,101–5,125 of 9,738

entry_scan, page 205 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5101527122018-02-21 13:05:161Private Vehicle
5102527022018-02-21 13:05:231Private Vehicle
5103526012018-02-21 16:32:481Metro
5104525912018-02-21 16:33:141Metro
5105526812018-02-22 10:07:201Walk
5106526912018-02-22 10:07:351Walk
5107530612018-02-22 11:13:011Walk
5108531342018-02-23 12:09:041Taxi
5109531442018-02-23 12:09:201Taxi
5110531642018-02-24 10:53:001Bus
5111531742018-02-24 10:53:011Bus
5112531822018-02-24 10:54:521Walk
5113528912018-02-24 11:18:491Bus
5114529012018-02-24 11:19:041Bus
5115531912018-02-24 11:33:111Walk
5116532012018-02-24 11:33:131Walk
5117532012018-02-24 14:29:130NULL
5118531912018-02-24 15:02:460NULL
5119532112018-02-25 09:13:311Private Vehicle
5120523742018-02-25 09:59:361Metro
5121529912018-02-25 11:26:031Metro
5122532342018-02-25 11:48:251Metro
5123532542018-02-25 11:48:311Metro
5124532242018-02-25 11:48:361Metro
5125532442018-02-25 11:48:401Metro
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;