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 4,676–4,700 of 9,738

entry_scan, page 188 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4676446412017-11-06 13:38:201Bus
4677445312017-11-06 13:38:361Bus
4678444512017-11-06 13:38:541Bus
4679443912017-11-06 13:39:171Bus
4680446012017-11-06 13:39:181Bus
4681444912017-11-06 13:39:301Bus
4682445712017-11-06 13:39:341Bus
4683444612017-11-06 13:39:491Bus
4684444212017-11-06 13:40:021Bus
4685445512017-11-06 13:40:561Bus
4686445912017-11-06 13:41:001Bus
4687444712017-11-06 13:41:121Bus
4688484012017-11-06 13:41:121Walk
4689483912017-11-06 13:41:451Walk
4690445612017-11-06 13:42:121Bus
4691445412017-11-06 13:42:191Bus
4692445012017-11-06 13:42:211Bus
4693445812017-11-06 13:43:111Bus
4694446212017-11-06 13:43:241Bus
4695446112017-11-06 13:44:281Bus
4696446312017-11-06 13:44:561Bus
4697484212017-11-07 11:43:121Taxi
4698484312017-11-07 11:43:301Taxi
4699484622017-11-10 09:20:201Walk
4700482732017-11-11 10:38:231Walk
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;