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 9,526–9,550 of 9,738

entry_scan, page 382 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9526961442020-01-07 10:34:261Walk
9527964712020-01-07 11:36:281Metro
9528961542020-01-07 12:21:120NULL
9529961642020-01-07 12:52:290NULL
9530961422020-01-07 13:46:450NULL
9531963732020-01-08 10:28:081Bus
9532963432020-01-08 10:28:231Bus
9533963532020-01-08 10:28:321Bus
9534963632020-01-08 10:28:501Bus
9535965212020-01-08 11:07:581Metro
9536965412020-01-09 10:21:311Walk
9537965512020-01-09 10:21:321Walk
9538958922020-01-09 10:56:451Metro
9539958822020-01-09 10:57:041Metro
9540965612020-01-09 11:48:511Walk
9541965712020-01-09 11:49:031Walk
9542957522020-01-09 13:24:201Metro
9543957422020-01-09 13:24:221Metro
9544965812020-01-09 13:47:121Metro
9545964922020-01-09 15:33:511Other
9546964822020-01-09 15:33:581Other
9547965132020-01-12 15:30:321Walk
9548965032020-01-12 15:30:581Walk
9549966642020-01-13 09:45:541Metro
9550966842020-01-13 09:46:011Metro
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;