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 9,701–9,725 of 9,738

entry_scan, page 389 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9701981212020-02-18 14:00:021Taxi
9702981212020-02-18 15:49:350NULL
9703982012020-02-19 12:49:391Train
9704982212020-02-19 12:49:591Train
9705982312020-02-19 12:50:161Train
9706981912020-02-19 12:50:221Train
9707982112020-02-19 12:50:231Train
9708982922020-02-19 16:33:201Metro
9709982822020-02-19 16:33:261Metro
9710983042020-02-20 10:56:311Walk
9711980012020-02-20 14:51:591Train
9712979712020-02-20 14:52:091Train
9713979812020-02-20 14:52:221Train
9714979912020-02-20 14:52:261Train
9715980112020-02-20 14:52:271Train
9716983122020-02-22 09:52:491Bus
9717983222020-02-22 09:53:291Bus
9718973532020-02-23 10:44:411Private Vehicle
9719973432020-02-23 10:44:441Private Vehicle
9720974732020-02-23 11:38:031Metro
9721974932020-02-23 11:38:161Metro
9722974832020-02-23 11:38:371Metro
9723974632020-02-23 11:38:381Metro
9724982412020-02-23 14:42:081Other
9725982712020-02-23 14:42:301Other
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;