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 526–550 of 9,738

entry_scan, page 22 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
52672342015-06-28 10:43:221Walk
52772242015-06-28 10:43:291Walk
52872532015-06-28 11:38:191Walk
52972612015-06-28 12:30:101Bus
53072712015-06-28 13:34:141Walk
53117212015-06-30 13:46:011Bus
53217312015-06-30 13:46:151Bus
53317612015-06-30 13:46:171Bus
53417412015-06-30 13:46:291Bus
53517912015-06-30 13:46:291Bus
53617512015-06-30 13:46:341Bus
53718112015-06-30 13:46:371Bus
53817812015-06-30 13:47:011Bus
53919112015-06-30 13:47:091Bus
54017712015-06-30 13:47:111Bus
54118312015-06-30 13:47:111Bus
54218012015-06-30 13:47:211Bus
54319612015-06-30 13:47:511Bus
54419012015-06-30 13:47:531Bus
54519912015-06-30 13:48:061Bus
54618712015-06-30 13:48:111Bus
54718412015-06-30 13:48:241Bus
54819812015-06-30 13:48:251Bus
54918512015-06-30 13:48:371Bus
55020012015-06-30 13:48:371Bus
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;