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 6,676–6,700 of 9,738

entry_scan, page 268 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6676614042018-10-25 10:00:171Bus
6677614642018-10-25 10:00:211Bus
6678614742018-10-25 10:00:251Bus
6679614342018-10-25 10:00:321Bus
6680614942018-10-25 10:00:331Bus
6681613342018-10-25 10:00:471Bus
6682615142018-10-25 10:01:071Bus
6683615242018-10-25 10:01:121Bus
6684613242018-10-25 10:01:131Bus
6685613442018-10-25 10:01:251Bus
6686615942018-10-25 10:01:371Bus
6687613742018-10-25 10:02:011Bus
6688613942018-10-25 10:02:061Bus
6689613842018-10-25 10:02:131Bus
6690616042018-10-25 10:02:191Bus
6691613542018-10-25 10:02:221Bus
6692614242018-10-25 10:02:391Bus
6693614842018-10-25 10:03:171Bus
6694614142018-10-25 10:03:521Bus
6695616242018-10-25 10:04:281Bus
6696616442018-10-25 10:04:461Bus
6697614542018-10-25 10:04:521Bus
6698615442018-10-25 10:05:011Bus
6699615842018-10-25 10:05:371Bus
6700616542018-10-25 10:05: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;