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 726–750 of 9,738

entry_scan, page 30 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
72638642015-08-02 11:55:021Bus
72738042015-08-02 11:55:041Bus
72838342015-08-02 11:55:251Bus
72937042015-08-02 11:55:271Bus
73037542015-08-02 11:55:351Bus
73140142015-08-02 11:55:401Bus
73237142015-08-02 11:55:421Bus
73340342015-08-02 11:55:441Bus
73437642015-08-02 11:55:461Bus
73540542015-08-02 11:55:521Bus
73638842015-08-02 11:56:001Bus
73737942015-08-02 11:56:121Bus
73838742015-08-02 11:56:391Bus
73939442015-08-02 11:56:421Bus
74039642015-08-02 11:56:561Bus
74141142015-08-02 11:56:571Bus
74238242015-08-02 11:57:061Bus
74341342015-08-02 11:57:071Bus
74438442015-08-02 11:57:121Bus
74538942015-08-02 11:57:221Bus
74639142015-08-02 11:57:421Bus
74739242015-08-02 11:57:521Bus
74839842015-08-02 11:58:181Bus
74940042015-08-02 11:58:361Bus
75039542015-08-02 11:59:241Bus
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;