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,451–5,475 of 9,738

entry_scan, page 219 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5451508042018-05-04 12:18:581Bus
5452507842018-05-04 12:19:021Bus
5453507442018-05-04 12:19:031Bus
5454507742018-05-04 12:19:081Bus
5455508742018-05-04 12:19:181Bus
5456509542018-05-04 12:19:341Bus
5457508642018-05-04 12:19:431Bus
5458509242018-05-04 12:19:431Bus
5459510242018-05-04 12:20:021Bus
5460508342018-05-04 12:20:101Bus
5461508842018-05-04 12:20:141Bus
5462509642018-05-04 12:20:281Bus
5463508242018-05-04 12:20:321Bus
5464511442018-05-04 12:20:341Bus
5465509142018-05-04 12:20:381Bus
5466508542018-05-04 12:20:461Bus
5467509042018-05-04 12:20:491Bus
5468509442018-05-04 12:21:021Bus
5469508442018-05-04 12:21:131Bus
5470508942018-05-04 12:21:161Bus
5471510942018-05-04 12:21:341Bus
5472511942018-05-04 12:22:161Bus
5473512142018-05-04 12:22:281Bus
5474509342018-05-04 12:23:061Bus
5475509942018-05-04 12:23:061Bus
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;