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

entry_scan, page 126 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3126339012017-01-08 12:05:141Walk
3127338912017-01-08 12:05:231Walk
3128333822017-01-10 11:58:231Private Vehicle
3129333722017-01-10 11:58:401Private Vehicle
3130339112017-01-10 16:29:141Walk
3131339212017-01-10 16:29:231Walk
3132333622017-01-11 13:15:341Metro
3133333452017-01-12 11:56:511Walk
3134333352017-01-12 11:57:021Walk
3135339532017-01-12 14:52:201Other
3136339632017-01-12 14:52:421Other
3137339732017-01-12 14:52:491Other
3138340212017-01-14 12:17:511Train
3139340112017-01-14 12:18:071Train
3140340312017-01-14 15:52:121Walk
3141340742017-01-16 11:05:511Walk
3142340642017-01-16 11:06:191Walk
3143339312017-01-17 13:58:181Walk
3144341022017-01-17 14:21:551Metro
3145341122017-01-17 14:22:311Metro
3146340812017-01-18 12:43:561Metro
3147340912017-01-18 12:44:441Metro
3148339412017-01-19 10:59:431Train
3149342212017-01-20 14:19:241Metro
3150342112017-01-20 14:19:421Metro
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;