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 76–100 of 9,738

entry_scan, page 4 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7610812015-03-31 09:23:201Train
7717142015-03-31 14:11:441Taxi
7817042015-03-31 14:11:461Taxi
7922152015-04-01 09:51:261Walk
8022342015-04-01 14:18:251Metro
8122642015-04-01 14:18:331Metro
8222542015-04-01 14:18:551Metro
8322442015-04-01 14:18:571Metro
8423012015-04-02 15:27:091Walk
8523612015-04-04 09:41:141Walk
8623512015-04-04 09:41:441Walk
8723232015-04-04 09:52:471Walk
8823132015-04-04 09:52:531Walk
8922252015-04-04 10:10:131Walk
9023232015-04-04 11:24:030NULL
9123132015-04-04 13:51:500NULL
9223932015-04-04 14:28:021Walk
9323832015-04-04 14:28:231Walk
9423732015-04-04 14:28:321Walk
9524132015-04-05 09:32:231Metro
9624232015-04-05 09:32:441Metro
9724322015-04-05 09:51:421Taxi
9824522015-04-05 09:51:521Taxi
9924422015-04-05 09:51:571Taxi
10024622015-04-05 09:52:141Taxi
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;