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,426–2,450 of 9,738

entry_scan, page 98 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2426248312016-07-17 10:00:161Walk
2427251052016-07-17 10:17:481Bus
2428251422016-07-17 13:54:251Metro
2429251122016-07-17 13:54:291Metro
2430251322016-07-17 13:54:341Metro
2431251522016-07-17 13:54:491Metro
2432251222016-07-17 13:55:061Metro
2433247622016-07-18 12:46:011Walk
2434247922016-07-18 12:46:011Walk
2435247822016-07-18 12:46:051Walk
2436247722016-07-18 12:46:451Walk
2437246152016-07-18 15:11:041Walk
2438246052016-07-18 15:11:351Walk
2439246252016-07-18 15:11:461Walk
2440252012016-07-19 14:03:081Metro
2441252112016-07-19 14:03:081Metro
2442252912016-07-20 10:17:191Metro
2443252812016-07-20 10:17:491Metro
2444253142016-07-20 16:45:221Walk
2445253042016-07-20 16:45:551Walk
2446253542016-07-21 15:35:111Metro
2447253642016-07-21 15:35:111Metro
2448253712016-07-22 11:34:181Walk
2449253812016-07-22 11:34:501Walk
2450251952016-07-22 12:54:201Bus
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;