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,301–2,325 of 9,738

entry_scan, page 93 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2301189712016-07-01 13:43:431Bus
2302190512016-07-01 13:43:431Bus
2303189812016-07-01 13:43:501Bus
2304190312016-07-01 13:43:551Bus
2305190812016-07-01 13:43:581Bus
2306190612016-07-01 13:44:021Bus
2307191212016-07-01 13:44:181Bus
2308190912016-07-01 13:44:201Bus
2309189912016-07-01 13:44:231Bus
2310191012016-07-01 13:44:261Bus
2311191412016-07-01 13:44:281Bus
2312192112016-07-01 13:44:341Bus
2313190112016-07-01 13:44:441Bus
2314191312016-07-01 13:44:441Bus
2315191812016-07-01 13:44:481Bus
2316190412016-07-01 13:45:141Bus
2317190712016-07-01 13:45:381Bus
2318191912016-07-01 13:45:471Bus
2319192512016-07-01 13:45:561Bus
2320192912016-07-01 13:46:201Bus
2321193712016-07-01 13:46:231Bus
2322191112016-07-01 13:46:261Bus
2323193212016-07-01 13:46:381Bus
2324193612016-07-01 13:47:021Bus
2325193112016-07-01 13:47:111Bus
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;