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 201–225 of 9,738

entry_scan, page 9 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2013842015-04-25 10:48:591Bus
2023342015-04-25 10:49:191Bus
2033242015-04-25 10:49:291Bus
2045642015-04-25 10:49:531Bus
2054042015-04-25 10:50:251Bus
2064142015-04-25 10:50:381Bus
2074742015-04-25 10:50:381Bus
2085242015-04-25 10:50:491Bus
2095742015-04-25 10:50:501Bus
2104542015-04-25 10:50:531Bus
2114442015-04-25 10:51:171Bus
2126142015-04-25 10:51:261Bus
2136242015-04-25 10:51:351Bus
2145142015-04-25 10:52:051Bus
2155542015-04-25 10:52:061Bus
2166342015-04-25 10:52:391Bus
2175442015-04-25 10:52:411Bus
2185942015-04-25 10:52:501Bus
2195842015-04-25 10:54:191Bus
2205342015-04-25 10:54:441Bus
2216042015-04-25 10:54:451Bus
2226442015-04-25 10:55:371Bus
22331022015-04-26 09:06:141Private Vehicle
22431122015-04-26 09:06:151Private Vehicle
22531422015-04-26 09:06:251Private Vehicle
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;