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

entry_scan, page 142 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3526321412017-04-06 13:18:181Bus
3527322612017-04-06 13:18:191Bus
3528320112017-04-06 13:18:241Bus
3529320712017-04-06 13:18:301Bus
3530322012017-04-06 13:18:421Bus
3531322912017-04-06 13:19:061Bus
3532320812017-04-06 13:19:241Bus
3533323412017-04-06 13:19:241Bus
3534322412017-04-06 13:19:301Bus
3535322512017-04-06 13:19:381Bus
3536321112017-04-06 13:19:541Bus
3537321512017-04-06 13:20:011Bus
3538322212017-04-06 13:20:041Bus
3539321912017-04-06 13:20:071Bus
3540321212017-04-06 13:20:091Bus
3541321612017-04-06 13:20:141Bus
3542321712017-04-06 13:20:271Bus
3543322712017-04-06 13:21:541Bus
3544323812017-04-06 13:21:541Bus
3545323012017-04-06 13:21:571Bus
3546322812017-04-06 13:23:081Bus
3547323112017-04-06 13:24:241Bus
3548372822017-04-07 14:54:381Metro
3549372922017-04-07 14:54:421Metro
3550373122017-04-08 10:23:381Metro
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;