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 7,251–7,275 of 9,738

entry_scan, page 291 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7251759522019-02-07 14:30:481Metro
7252760022019-02-07 14:39:091Bus
7253761042019-02-09 14:30:301Walk
7254761142019-02-09 14:30:331Walk
7255761242019-02-09 14:30:501Walk
7256760512019-02-10 10:15:281Metro
7257762012019-02-10 15:18:171Train
7258761912019-02-10 15:18:321Train
7259761712019-02-10 15:18:341Train
7260761812019-02-10 15:18:511Train
7261762112019-02-10 15:18:571Train
7262763112019-02-11 10:12:371Train
7263763012019-02-11 10:12:391Train
7264763112019-02-11 11:50:000NULL
7265763012019-02-11 12:50:570NULL
7266738812019-02-11 16:42:111Metro
7267762512019-02-12 10:45:221Walk
7268762612019-02-12 10:45:271Walk
7269762712019-02-12 10:45:381Walk
7270762412019-02-12 10:45:521Walk
7271763412019-02-12 11:00:551Walk
7272763512019-02-12 11:01:201Walk
7273763312019-02-12 11:01:211Walk
7274763612019-02-12 13:34:211Bus
7275763712019-02-12 13:35:001Bus
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;