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,526–2,550 of 9,738

entry_scan, page 102 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2526260442016-08-09 12:27:291Walk
2527260342016-08-09 12:27:351Walk
2528261142016-08-09 14:26:471Taxi
2529261242016-08-09 14:27:021Taxi
2530259712016-08-09 15:11:461Walk
2531259612016-08-09 15:11:481Walk
2532261312016-08-11 10:59:401Walk
2533261512016-08-11 10:59:441Walk
2534261412016-08-11 10:59:591Walk
2535261612016-08-11 11:17:101Bus
2536261722016-08-11 12:01:261Walk
2537261822016-08-11 12:02:041Walk
2538262312016-08-11 13:29:181Walk
2539261912016-08-11 13:29:281Walk
2540262012016-08-11 13:29:381Walk
2541262212016-08-11 13:29:551Walk
2542262112016-08-11 13:30:031Walk
2543262822016-08-13 10:06:331Bus
2544263012016-08-13 10:13:371Metro
2545262912016-08-13 10:13:541Metro
2546259352016-08-13 14:27:421Walk
2547259252016-08-13 14:27:571Walk
2548263412016-08-14 09:01:301Private Vehicle
2549263512016-08-14 09:01:431Private Vehicle
2550263712016-08-14 09:01:451Private 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;