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,326–8,350 of 9,738

entry_scan, page 334 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8326852212019-07-12 09:41:271Walk
8327852112019-07-12 12:10:520NULL
8328852012019-07-12 12:53:400NULL
8329854532019-07-12 13:25:361Walk
8330854432019-07-12 13:25:381Walk
8331854232019-07-12 13:25:431Walk
8332854332019-07-12 13:26:061Walk
8333852212019-07-12 13:38:260NULL
8334853242019-07-13 09:42:071Taxi
8335853342019-07-13 09:42:191Taxi
8336843412019-07-13 10:01:321Walk
8337851132019-07-13 12:02:351Metro
8338851032019-07-13 12:02:461Metro
8339843412019-07-13 12:48:190NULL
8340842922019-07-13 13:12:391Walk
8341845412019-07-13 13:28:101Metro
8342845512019-07-13 13:28:521Metro
8343854012019-07-13 14:03:311Metro
8344854112019-07-13 14:03:351Metro
8345853912019-07-13 14:03:391Metro
8346851322019-07-14 09:02:211Walk
8347851422019-07-14 09:02:281Walk
8348855552019-07-14 10:23:291Train
8349855452019-07-14 10:23:431Train
8350854612019-07-14 10:47:351Bus
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;