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,401–8,425 of 9,738

entry_scan, page 337 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8401855942019-07-15 13:54:510NULL
8402838722019-07-15 14:06:570NULL
8403855832019-07-16 09:35:461Metro
8404852952019-07-16 11:17:041Walk
8405853152019-07-16 11:17:061Walk
8406853052019-07-16 11:17:081Walk
8407839912019-07-16 11:22:101Metro
8408856022019-07-18 12:00:021Other
8409856612019-07-19 09:34:111Walk
8410856512019-07-19 09:34:391Walk
8411857342019-07-19 11:02:001Bus
8412855212019-07-19 12:38:161Taxi
8413855312019-07-19 12:38:241Taxi
8414857122019-07-19 14:59:451Metro
8415857222019-07-19 14:59:541Metro
8416857022019-07-19 15:00:031Metro
8417857712019-07-20 10:07:321Bus
8418857612019-07-20 10:07:341Bus
8419857812019-07-20 10:08:091Bus
8420857912019-07-20 10:08:121Bus
8421854912019-07-20 10:46:211Walk
8422858112019-07-20 12:19:311Walk
8423858012019-07-20 12:19:591Walk
8424856232019-07-20 13:49:581Metro
8425856332019-07-20 13:50:081Metro
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;