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,126–6,150 of 9,738

entry_scan, page 246 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6126563112018-08-10 11:03:311Walk
6127561212018-08-10 11:03:441Walk
6128562312018-08-10 11:04:151Walk
6129562912018-08-10 11:04:201Walk
6130561412018-08-10 11:04:211Walk
6131560712018-08-10 11:04:261Walk
6132561112018-08-10 11:05:111Walk
6133562612018-08-10 11:05:351Walk
6134562012018-08-10 11:05:441Walk
6135562212018-08-10 11:05:571Walk
6136561712018-08-10 11:06:111Walk
6137562712018-08-10 11:06:111Walk
6138562812018-08-10 11:06:491Walk
6139644722018-08-10 13:09:321Metro
6140635642018-08-10 13:47:441Metro
6141644842018-08-10 14:17:191Taxi
6142640812018-08-11 10:44:431Bus
6143640912018-08-11 10:44:451Bus
6144645312018-08-11 11:32:451Other
6145646012018-08-12 10:21:181Walk
6146646112018-08-12 10:21:241Walk
6147633912018-08-12 11:19:261Walk
6148644932018-08-12 13:35:331Metro
6149645032018-08-12 13:35:431Metro
6150644532018-08-12 15:00:121Walk
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;