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 4,476–4,500 of 9,738

entry_scan, page 180 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4476466512017-09-26 11:56:551Private Vehicle
4477466312017-09-26 11:57:131Private Vehicle
4478464842017-09-26 15:16:131Taxi
4479463632017-09-26 16:17:531Walk
4480465222017-09-27 10:00:461Bus
4481465322017-09-27 10:01:071Bus
4482465122017-09-27 10:01:121Bus
4483465222017-09-27 12:39:390NULL
4484465112017-09-27 13:09:160NULL
4485465322017-09-27 13:12:390NULL
4486466732017-09-27 15:41:081Bus
4487466822017-09-27 16:06:321Walk
4488466922017-09-27 16:06:451Walk
4489467042017-09-28 12:36:031Walk
4490467432017-09-29 11:52:181Walk
4491467532017-09-29 11:52:521Walk
4492467622017-09-30 09:00:481Walk
4493467922017-09-30 09:00:501Walk
4494467722017-09-30 09:00:551Walk
4495467822017-09-30 09:01:031Walk
4496467112017-09-30 09:19:371Walk
4497467212017-09-30 09:19:501Walk
4498467342017-09-30 09:24:531Walk
4499468322017-10-01 09:26:181Private Vehicle
4500465452017-10-01 10:29:561Metro
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;