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,301–8,325 of 9,738

entry_scan, page 333 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8301850112019-07-06 13:50:211Walk
8302850012019-07-06 13:50:311Walk
8303849822019-07-06 13:52:331Metro
8304849722019-07-06 13:52:381Metro
8305849922019-07-06 13:52:481Metro
8306850442019-07-07 10:04:171Metro
8307843622019-07-07 10:07:381Metro
8308850332019-07-07 10:15:551Metro
8309850532019-07-07 13:00:271Metro
8310850612019-07-08 09:03:211Metro
8311845812019-07-08 09:35:001Metro
8312845612019-07-08 09:35:041Metro
8313845712019-07-08 09:35:111Metro
8314845912019-07-08 09:35:431Metro
8315850912019-07-08 11:18:151Walk
8316849622019-07-08 15:00:161Metro
8317851242019-07-09 11:52:241Walk
8318851912019-07-10 10:40:411Taxi
8319851812019-07-10 10:40:591Taxi
8320839812019-07-10 11:59:031Metro
8321850212019-07-10 13:48:241Bus
8322852712019-07-11 10:25:121Bus
8323852812019-07-11 10:51:231Metro
8324852112019-07-12 09:41:131Walk
8325852012019-07-12 09:41:161Walk
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;