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 1,876–1,900 of 9,738

entry_scan, page 76 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1876198512016-03-28 11:05:221Other
1877198612016-03-28 11:05:431Other
1878198412016-03-28 11:05:451Other
1879195712016-03-28 11:41:451Walk
1880195812016-03-28 11:42:161Walk
1881200622016-03-28 12:04:571Metro
1882200752016-03-28 15:01:151Taxi
1883199112016-03-29 09:08:121Bus
1884199412016-03-29 09:08:221Bus
1885199512016-03-29 09:08:231Bus
1886199312016-03-29 09:08:491Bus
1887200912016-03-29 09:39:591Walk
1888200812016-03-29 09:40:091Walk
1889201112016-03-29 09:40:311Walk
1890201012016-03-29 09:40:371Walk
1891201212016-03-29 14:00:381Metro
1892202222016-04-01 11:48:051Train
1893202122016-04-01 11:48:391Train
1894202022016-04-01 13:55:051Bus
1895201822016-04-01 13:55:091Bus
1896201922016-04-01 13:55:111Bus
1897200442016-04-01 14:01:021Bus
1898200542016-04-01 14:01:241Bus
1899200142016-04-01 14:01:451Bus
1900200342016-04-01 14:01:461Bus
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;