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,676–8,700 of 9,738

entry_scan, page 348 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8676880312019-08-28 11:28:061Taxi
8677883212019-08-28 13:36:221Walk
8678883112019-08-28 13:36:421Walk
8679877522019-08-28 16:34:421Private Vehicle
8680877422019-08-28 16:34:541Private Vehicle
8681884622019-08-29 09:39:351Walk
8682884722019-08-29 09:39:521Walk
8683878942019-08-29 10:46:021Metro
8684878842019-08-29 10:46:181Metro
8685885512019-08-30 09:35:001Metro
8686885412019-08-30 09:35:081Metro
8687885712019-08-30 10:28:091Walk
8688885812019-08-30 10:28:341Walk
8689885612019-08-30 10:28:441Walk
8690886522019-08-31 10:13:211Metro
8691886422019-08-31 10:13:401Metro
8692882812019-08-31 10:21:491Walk
8693886712019-08-31 10:31:511Other
8694882522019-08-31 10:32:061Metro
8695886612019-08-31 10:32:091Other
8696882422019-08-31 10:32:251Metro
8697882722019-08-31 10:32:281Metro
8698882622019-08-31 10:32:301Metro
8699885212019-08-31 12:31:511Metro
8700885312019-08-31 12:31:511Metro
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;