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,226–4,250 of 9,738

entry_scan, page 170 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4226440412017-08-17 11:37:131Walk
4227440612017-08-17 11:37:281Walk
4228440512017-08-17 11:37:301Walk
4229440312017-08-17 11:37:431Walk
4230431412017-08-17 12:50:441Metro
4231431512017-08-17 12:51:101Metro
4232440722017-08-17 14:06:341Metro
4233440712017-08-17 15:47:380NULL
4234440922017-08-18 12:18:311Metro
4235441022017-08-18 12:18:311Metro
4236440922017-08-18 15:12:240NULL
4237441022017-08-18 16:12:180NULL
4238436312017-08-19 09:28:311Bus
4239436412017-08-19 09:28:531Bus
4240439122017-08-19 09:55:521Bus
4241439222017-08-19 09:55:561Bus
4242437912017-08-19 12:06:131Other
4243438012017-08-19 12:06:291Other
4244441642017-08-19 14:01:571Walk
4245441542017-08-19 14:02:111Walk
4246437222017-08-20 12:20:571Private Vehicle
4247437022017-08-20 12:21:171Private Vehicle
4248437322017-08-20 12:21:211Private Vehicle
4249436922017-08-20 12:21:321Private Vehicle
4250437122017-08-20 12:21:321Private Vehicle
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;