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,001–6,025 of 9,738

entry_scan, page 241 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6001628322018-07-25 10:40:041Metro
6002628512018-07-25 12:00:161Metro
6003628412018-07-25 12:00:521Metro
6004628132018-07-26 09:17:031Walk
6005628032018-07-26 09:17:521Walk
6006595922018-07-26 09:39:521Metro
6007629622018-07-27 10:09:041Metro
6008629722018-07-27 10:09:221Metro
6009623612018-07-27 12:01:411Metro
6010629822018-07-27 12:18:291Metro
6011626922018-07-27 14:22:581Private Vehicle
6012626822018-07-27 14:23:221Private Vehicle
6013626822018-07-27 16:47:310NULL
6014626922018-07-27 16:57:400NULL
6015630012018-07-28 09:15:231Taxi
6016630112018-07-28 09:15:251Taxi
6017628722018-07-28 09:25:401Metro
6018628822018-07-28 09:25:441Metro
6019628922018-07-28 09:25:521Metro
6020629022018-07-28 09:25:541Metro
6021628622018-07-28 09:26:041Metro
6022629152018-07-28 09:35:081Walk
6023629352018-07-28 09:35:281Walk
6024629252018-07-28 09:35:301Walk
6025630352018-07-28 13:18:431Walk
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;