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 1,976–2,000 of 9,738

entry_scan, page 80 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1976210712016-04-30 11:45:451Private Vehicle
1977210022016-04-30 16:25:221Metro
1978210322016-04-30 16:25:221Metro
1979210122016-04-30 16:25:261Metro
1980210222016-04-30 16:25:311Metro
1981210422016-04-30 16:25:351Metro
1982211352016-05-01 09:44:371Bus
1983211552016-05-01 09:44:451Bus
1984211652016-05-01 09:45:041Bus
1985211452016-05-01 09:45:121Bus
1986211842016-05-01 11:32:571Bus
1987211742016-05-01 11:33:031Bus
1988209112016-05-01 13:04:031Bus
1989209212016-05-01 13:04:131Bus
1990209012016-05-01 13:04:251Bus
1991212112016-05-01 16:59:521Bus
1992212012016-05-01 16:59:591Bus
1993212212016-05-02 09:14:461Bus
1994212312016-05-02 09:15:001Bus
1995209822016-05-02 09:51:471Private Vehicle
1996209622016-05-02 09:51:551Private Vehicle
1997209722016-05-02 09:52:001Private Vehicle
1998209922016-05-02 09:52:101Private Vehicle
1999212732016-05-02 10:07:471Walk
2000212632016-05-02 10:08:011Walk
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;