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 8,151–8,175 of 9,738

entry_scan, page 327 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8151813922019-06-06 14:41:170NULL
8152813722019-06-06 14:47:530NULL
8153814012019-06-06 14:48:120NULL
8154830632019-06-06 15:25:291Bus
8155830732019-06-06 15:25:551Bus
8156831822019-06-08 10:36:191Walk
8157831722019-06-08 10:36:281Walk
8158832912019-06-08 10:44:141Walk
8159833012019-06-08 10:58:471Train
8160833112019-06-08 10:59:241Train
8161833212019-06-08 14:39:331Taxi
8162830822019-06-08 15:50:211Metro
8163830922019-06-08 15:50:301Metro
8164819212019-06-08 16:10:071Walk
8165819112019-06-08 16:10:261Walk
8166810912019-06-09 09:19:001Walk
8167811012019-06-09 09:19:131Walk
8168833432019-06-09 12:38:491Walk
8169833332019-06-09 12:38:551Walk
8170833532019-06-09 12:39:081Walk
8171832352019-06-10 12:37:391Bus
8172832252019-06-10 12:38:091Bus
8173833712019-06-10 15:25:101Walk
8174833812019-06-11 09:39:141Walk
8175833912019-06-11 09:39:301Walk
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;