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,226–2,250 of 9,738

entry_scan, page 90 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2226238722016-06-18 11:55:341Private Vehicle
2227238822016-06-18 11:55:441Private Vehicle
2228239112016-06-19 14:27:521Taxi
2229239212016-06-19 14:27:551Taxi
2230239422016-06-20 10:35:451Taxi
2231239322016-06-20 10:36:041Taxi
2232239522016-06-20 10:36:251Taxi
2233220912016-06-22 09:32:261Walk
2234221012016-06-22 09:32:401Walk
2235221212016-06-22 09:32:501Walk
2236221312016-06-22 09:32:591Walk
2237222612016-06-22 09:33:141Walk
2238222212016-06-22 09:33:201Walk
2239222712016-06-22 09:33:201Walk
2240221412016-06-22 09:33:261Walk
2241221712016-06-22 09:33:261Walk
2242222812016-06-22 09:33:261Walk
2243223312016-06-22 09:33:261Walk
2244223512016-06-22 09:33:361Walk
2245224012016-06-22 09:33:381Walk
2246222312016-06-22 09:34:111Walk
2247223612016-06-22 09:34:111Walk
2248223212016-06-22 09:35:001Walk
2249223412016-06-22 09:35:411Walk
2250223812016-06-22 09:35:541Walk
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;