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 7,926–7,950 of 9,738

entry_scan, page 318 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7926808812019-05-04 15:26:441Metro
7927814312019-05-05 13:52:531Walk
7928816652019-05-05 15:58:021Bus
7929816452019-05-05 15:58:051Bus
7930816752019-05-05 15:58:141Bus
7931816552019-05-05 15:58:191Bus
7932813442019-05-06 12:48:531Walk
7933813542019-05-06 12:48:571Walk
7934818722019-05-07 14:55:501Metro
7935818622019-05-07 14:56:171Metro
7936819932019-05-09 09:43:401Metro
7937820032019-05-09 09:44:261Metro
7938820232019-05-09 11:15:081Walk
7939820132019-05-09 11:15:461Walk
7940818232019-05-10 10:46:371Bus
7941818532019-05-10 10:46:561Bus
7942818332019-05-10 10:47:041Bus
7943818432019-05-10 10:47:061Bus
7944812242019-05-10 10:58:341Walk
7945812342019-05-10 10:58:341Walk
7946809232019-05-10 16:18:021Train
7947809132019-05-10 16:18:271Train
7948809032019-05-10 16:18:301Train
7949820532019-05-11 09:28:081Train
7950820632019-05-11 09:28:341Train
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;