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

entry_scan, page 14 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
32653512015-05-16 09:40:191Other
32753712015-05-16 15:15:121Metro
32852112015-05-17 11:29:461Taxi
32952012015-05-17 11:29:501Taxi
33051912015-05-17 11:29:521Taxi
33152212015-05-17 11:30:231Taxi
33253932015-05-17 14:04:421Taxi
33353832015-05-17 14:05:031Taxi
33454152015-05-18 10:26:501Metro
33554252015-05-18 10:27:331Metro
33654342015-05-18 11:00:121Walk
33754442015-05-18 11:00:331Walk
33854532015-05-18 14:05:181Walk
33950622015-05-18 14:19:251Bus
34030012015-05-18 14:46:571Walk
34130112015-05-18 14:47:251Walk
34254812015-05-20 15:25:271Other
34354912015-05-20 15:25:391Other
34455022015-05-20 15:42:231Train
34552342015-05-21 11:25:181Metro
34654642015-05-21 11:31:181Walk
34754742015-05-21 11:31:461Walk
34860112015-05-21 14:03:171Metro
34960212015-05-22 10:04:131Train
35032052015-05-22 10:37:351Taxi
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;