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,376–9,400 of 9,738

entry_scan, page 376 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9376935232019-12-18 11:31:091Metro
9377953612019-12-18 15:04:180NULL
9378953942019-12-19 10:59:131Metro
9379956852019-12-19 14:14:401Metro
9380955342019-12-20 09:22:251Walk
9381955242019-12-20 09:22:351Walk
9382924142019-12-20 13:54:081Bus
9383924242019-12-20 13:54:141Bus
9384924442019-12-20 13:54:261Bus
9385924342019-12-20 13:54:361Bus
9386924542019-12-20 13:54:401Bus
9387924942019-12-20 13:54:481Bus
9388925142019-12-20 13:55:081Bus
9389925342019-12-20 13:55:081Bus
9390924642019-12-20 13:55:181Bus
9391925042019-12-20 13:55:201Bus
9392924742019-12-20 13:55:321Bus
9393926342019-12-20 13:55:361Bus
9394926442019-12-20 13:55:401Bus
9395924842019-12-20 13:55:461Bus
9396925242019-12-20 13:55:471Bus
9397925942019-12-20 13:55:561Bus
9398925442019-12-20 13:56:051Bus
9399925842019-12-20 13:56:071Bus
9400926042019-12-20 13:56:401Bus
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;