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,576–8,600 of 9,738

entry_scan, page 344 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8576869432019-08-10 14:20:271Metro
8577869332019-08-10 14:20:401Metro
8578869532019-08-10 14:20:441Metro
8579874512019-08-10 14:24:261Train
8580874612019-08-10 14:24:291Train
8581858612019-08-11 10:06:241Walk
8582858712019-08-11 10:06:441Walk
8583875112019-08-11 12:08:141Walk
8584874712019-08-11 12:08:151Walk
8585874912019-08-11 12:08:301Walk
8586874812019-08-11 12:08:351Walk
8587875012019-08-11 12:08:431Walk
8588867222019-08-12 10:53:381Metro
8589867122019-08-12 10:53:581Metro
8590867022019-08-12 10:53:591Metro
8591873912019-08-12 11:33:301Metro
8592874012019-08-12 11:33:441Metro
8593875722019-08-13 09:41:211Metro
8594876012019-08-14 13:24:541Bus
8595872012019-08-14 13:58:371Metro
8596872112019-08-14 13:58:481Metro
8597871912019-08-14 13:59:081Metro
8598872012019-08-14 17:27:460NULL
8599850812019-08-15 09:51:531Other
8600875812019-08-15 11:36:181Walk
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;