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 5,726–5,750 of 9,738

entry_scan, page 230 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5726603742018-06-13 14:56:541Taxi
5727603942018-06-13 14:57:051Taxi
5728604312018-06-13 15:36:181Walk
5729604412018-06-13 15:36:201Walk
5730604952018-06-15 10:33:091Bus
5731604622018-06-15 11:00:151Metro
5732602452018-06-15 11:00:501Walk
5733602352018-06-15 11:01:011Walk
5734604712018-06-15 11:22:551Walk
5735603522018-06-15 13:22:531Private Vehicle
5736603322018-06-15 13:22:551Private Vehicle
5737603222018-06-15 13:23:001Private Vehicle
5738603622018-06-15 13:23:231Private Vehicle
5739603422018-06-15 13:23:311Private Vehicle
5740603422018-06-15 15:53:360NULL
5741603322018-06-15 16:59:390NULL
5742603522018-06-15 17:13:400NULL
5743603622018-06-15 17:15:510NULL
5744603212018-06-15 17:17:040NULL
5745593812018-06-16 11:29:511Walk
5746593712018-06-16 11:29:551Walk
5747602712018-06-17 11:24:171Other
5748602612018-06-17 11:24:321Other
5749605822018-06-17 12:26:441Metro
5750605622018-06-17 12:27:021Metro
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;