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,326–2,350 of 9,738

entry_scan, page 94 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2326192312016-07-01 13:47:171Bus
2327192012016-07-01 13:47:181Bus
2328194812016-07-01 13:47:181Bus
2329194112016-07-01 13:47:321Bus
2330191512016-07-01 13:47:371Bus
2331192212016-07-01 13:47:381Bus
2332191712016-07-01 13:48:281Bus
2333191612016-07-01 13:48:381Bus
2334192612016-07-01 13:48:521Bus
2335194612016-07-01 13:48:561Bus
2336193812016-07-01 13:49:321Bus
2337192812016-07-01 13:49:501Bus
2338194212016-07-01 13:50:081Bus
2339192712016-07-01 13:50:131Bus
2340192412016-07-01 13:50:381Bus
2341194012016-07-01 13:50:381Bus
2342193012016-07-01 13:50:521Bus
2343193912016-07-01 13:51:151Bus
2344194412016-07-01 13:51:181Bus
2345193412016-07-01 13:51:441Bus
2346194512016-07-01 13:52:211Bus
2347193312016-07-01 13:52:531Bus
2348193512016-07-01 13:53:231Bus
2349194312016-07-01 13:53:411Bus
2350194712016-07-01 13:55:281Bus
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;