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,026–8,050 of 9,738

entry_scan, page 322 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8026823012019-05-21 11:21:131Bus
8027822912019-05-21 11:21:191Bus
8028822812019-05-21 11:21:471Bus
8029824422019-05-21 11:38:521Walk
8030816012019-05-21 12:15:011Walk
8031815912019-05-21 12:15:131Walk
8032822222019-05-21 16:09:501Private Vehicle
8033822122019-05-21 16:09:581Private Vehicle
8034826412019-05-22 09:24:531Taxi
8035826512019-05-22 09:25:051Taxi
8036826312019-05-22 09:25:421Taxi
8037826712019-05-24 12:41:551Taxi
8038826812019-05-24 12:42:021Taxi
8039827012019-05-24 12:42:071Taxi
8040826912019-05-24 12:42:151Taxi
8041804642019-05-24 13:15:391Walk
8042804742019-05-24 13:15:501Walk
8043827222019-05-24 15:35:141Taxi
8044827122019-05-24 15:35:321Taxi
8045816312019-05-24 16:24:511Walk
8046817712019-05-25 10:23:191Walk
8047817812019-05-25 10:23:311Walk
8048826012019-05-26 12:31:181Bus
8049826212019-05-26 12:31:241Bus
8050826112019-05-26 12:31:411Bus
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;