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 2,826–2,850 of 9,738

entry_scan, page 114 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2826269442016-10-28 11:11:291Bus
2827269542016-10-28 11:11:391Bus
2828269642016-10-28 11:11:531Bus
2829269742016-10-28 11:11:561Bus
2830269842016-10-28 11:12:011Bus
2831270242016-10-28 11:12:111Bus
2832270442016-10-28 11:12:321Bus
2833269942016-10-28 11:12:391Bus
2834270742016-10-28 11:12:531Bus
2835270042016-10-28 11:12:591Bus
2836270542016-10-28 11:12:591Bus
2837270342016-10-28 11:13:131Bus
2838270842016-10-28 11:13:131Bus
2839271142016-10-28 11:13:211Bus
2840271242016-10-28 11:13:281Bus
2841271042016-10-28 11:13:291Bus
2842272842016-10-28 11:13:331Bus
2843271342016-10-28 11:13:351Bus
2844270642016-10-28 11:13:411Bus
2845271842016-10-28 11:13:411Bus
2846271442016-10-28 11:14:011Bus
2847270942016-10-28 11:14:171Bus
2848272142016-10-28 11:14:171Bus
2849272542016-10-28 11:14:171Bus
2850271942016-10-28 11:14:331Bus
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;