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,851–2,875 of 9,738

entry_scan, page 115 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2851271542016-10-28 11:14:491Bus
2852272642016-10-28 11:14:521Bus
2853272442016-10-28 11:15:051Bus
2854272242016-10-28 11:15:391Bus
2855273042016-10-28 11:15:531Bus
2856272342016-10-28 11:16:151Bus
2857272742016-10-28 11:16:291Bus
2858271642016-10-28 11:16:441Bus
2859272942016-10-28 11:16:491Bus
2860294122016-10-28 15:11:061Taxi
2861292152016-10-29 09:34:491Walk
2862292052016-10-29 09:35:111Walk
2863286122016-10-29 11:16:371Train
2864286022016-10-29 11:16:401Train
2865285922016-10-29 11:17:151Train
2866285822016-10-29 11:17:201Train
2867291632016-10-30 12:09:261Metro
2868291532016-10-30 12:09:481Metro
2869291612016-10-30 15:14:090NULL
2870294312016-10-30 15:24:361Walk
2871294212016-10-30 15:24:451Walk
2872291532016-10-30 15:55:110NULL
2873286552016-10-30 15:58:511Metro
2874295032016-11-02 09:14:211Walk
2875295132016-11-02 09:14:491Walk
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;