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 3,751–3,775 of 9,738

entry_scan, page 151 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3751392922017-05-12 09:10:121Metro
3752393022017-05-12 09:10:201Metro
3753393532017-05-12 14:11:401Walk
3754393532017-05-12 16:13:300NULL
3755390832017-05-12 16:39:541Metro
3756390932017-05-12 16:39:591Metro
3757391132017-05-12 16:40:181Metro
3758391032017-05-12 16:40:211Metro
3759393232017-05-13 09:43:121Walk
3760393332017-05-13 09:43:131Walk
3761393432017-05-13 09:43:251Walk
3762393132017-05-13 09:43:281Walk
3763393652017-05-13 12:27:021Walk
3764393912017-05-13 15:41:001Metro
3765393812017-05-13 15:41:021Metro
3766393712017-05-13 15:41:171Metro
3767391612017-05-14 14:02:231Other
3768391512017-05-14 14:02:281Other
3769390132017-05-16 12:54:131Metro
3770394812017-05-18 09:32:501Walk
3771394912017-05-18 09:33:021Walk
3772394222017-05-18 10:09:401Train
3773389032017-05-18 11:25:301Metro
3774388932017-05-18 11:25:481Metro
3775388832017-05-18 11:25:521Metro
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;