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 2,201–2,225 of 9,738

entry_scan, page 89 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2201232612016-06-11 13:12:481Walk
2202236612016-06-12 10:14:151Taxi
2203236712016-06-12 10:14:251Taxi
2204237122016-06-12 11:44:201Private Vehicle
2205236512016-06-12 13:32:411Train
2206236412016-06-12 13:32:481Train
2207236912016-06-12 15:21:401Walk
2208237012016-06-12 15:21:561Walk
2209236812016-06-12 15:22:161Walk
2210237312016-06-14 09:04:191Metro
2211237412016-06-14 09:04:261Metro
2212233722016-06-14 09:24:531Metro
2213233622016-06-14 09:25:001Metro
2214233812016-06-14 12:19:361Metro
2215237222016-06-16 10:11:481Bus
2216237712016-06-16 13:10:141Walk
2217237812016-06-16 13:10:191Walk
2218238122016-06-16 16:27:551Walk
2219238022016-06-16 16:28:161Walk
2220237922016-06-16 16:28:331Walk
2221238212016-06-17 10:16:341Train
2222238312016-06-17 10:16:521Train
2223238512016-06-17 10:16:541Train
2224238412016-06-17 10:17:091Train
2225238922016-06-18 11:55:141Private 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;