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 6,176–6,200 of 9,738

entry_scan, page 248 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6176647432018-08-16 13:21:251Taxi
6177640122018-08-16 16:21:581Bus
6178647832018-08-17 09:49:511Metro
6179647732018-08-17 09:50:371Metro
6180647632018-08-17 09:50:391Metro
6181647912018-08-17 11:17:521Metro
6182648112018-08-17 11:17:571Metro
6183648012018-08-17 11:18:081Metro
6184648212018-08-17 11:18:151Metro
6185648312018-08-17 11:25:021Walk
6186645712018-08-17 11:36:561Taxi
6187645512018-08-17 11:37:121Taxi
6188645812018-08-17 11:37:131Taxi
6189645612018-08-17 11:37:151Taxi
6190645912018-08-17 11:37:201Taxi
6191648712018-08-18 10:39:141Metro
6192648512018-08-18 10:39:181Metro
6193648812018-08-18 10:39:251Metro
6194648612018-08-18 10:39:591Metro
6195619242018-08-18 10:41:151Bus
6196644142018-08-18 12:34:141Private Vehicle
6197648942018-08-18 12:47:321Bus
6198649042018-08-18 12:47:331Bus
6199649142018-08-18 12:47:361Bus
6200624712018-08-18 14:56:381Walk
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;