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 551–575 of 9,738

entry_scan, page 23 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
55118812015-06-30 13:48:491Bus
55219512015-06-30 13:48:491Bus
55319412015-06-30 13:49:211Bus
55418912015-06-30 13:49:461Bus
55519312015-06-30 13:49:491Bus
55619212015-06-30 13:49:551Bus
55719712015-06-30 13:50:141Bus
55872922015-07-01 09:11:371Bus
55972822015-07-01 09:12:031Bus
56073112015-07-01 11:04:581Walk
56173012015-07-01 11:05:121Walk
56273312015-07-02 10:52:451Metro
56373532015-07-02 11:27:511Metro
56473432015-07-02 11:28:091Metro
56573712015-07-03 10:49:181Bus
56674042015-07-03 14:36:131Walk
56773942015-07-03 14:36:211Walk
56873842015-07-03 14:36:221Walk
56974512015-07-04 09:30:511Walk
57074612015-07-05 09:47:221Walk
57174732015-07-05 10:18:011Metro
57274832015-07-05 10:18:381Metro
57375022015-07-05 11:49:551Private Vehicle
57475222015-07-05 11:50:001Private Vehicle
57575122015-07-05 11:50:031Private 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;