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,876–3,900 of 9,738

entry_scan, page 156 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3876403612017-06-11 13:32:371Walk
3877403812017-06-11 13:32:421Walk
3878403912017-06-11 13:33:061Walk
3879403512017-06-11 13:33:091Walk
3880403712017-06-11 13:33:151Walk
3881401742017-06-11 14:14:591Taxi
3882400732017-06-11 14:51:301Walk
3883400832017-06-11 14:51:311Walk
3884404022017-06-11 15:29:001Metro
3885404112017-06-12 12:24:201Metro
3886402432017-06-12 12:36:421Walk
3887402332017-06-12 12:36:521Walk
3888397112017-06-12 15:30:061Metro
3889396912017-06-12 15:30:221Metro
3890397012017-06-12 15:30:271Metro
3891404212017-06-13 15:52:321Train
3892404312017-06-13 15:53:181Train
3893397912017-06-14 10:37:451Train
3894397812017-06-14 10:38:061Train
3895396012017-06-14 11:28:291Walk
3896396112017-06-14 11:28:441Walk
3897404712017-06-14 11:59:011Bus
3898378342017-06-14 12:14:071Bus
3899378442017-06-14 12:14:181Bus
3900378542017-06-14 12:14:271Bus
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;