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 7,626–7,650 of 9,738

entry_scan, page 306 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7626792352019-03-30 15:15:551Taxi
7627792052019-03-30 15:16:141Taxi
7628792252019-03-30 15:16:171Taxi
7629792152019-03-30 15:16:181Taxi
7630792522019-03-31 09:44:441Walk
7631792422019-03-31 09:44:481Walk
7632791022019-04-01 16:25:561Metro
7633790922019-04-01 16:26:261Metro
7634790722019-04-01 16:26:401Metro
7635790822019-04-01 16:26:431Metro
7636729412019-04-02 10:00:301Bus
7637729612019-04-02 10:00:401Bus
7638730112019-04-02 10:00:501Bus
7639730212019-04-02 10:00:501Bus
7640729712019-04-02 10:00:541Bus
7641729812019-04-02 10:01:121Bus
7642730312019-04-02 10:01:241Bus
7643730512019-04-02 10:01:261Bus
7644731212019-04-02 10:01:421Bus
7645731812019-04-02 10:01:451Bus
7646731012019-04-02 10:01:501Bus
7647730812019-04-02 10:01:581Bus
7648730912019-04-02 10:02:001Bus
7649731412019-04-02 10:02:141Bus
7650731112019-04-02 10:02:311Bus
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;