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,851–1,875 of 9,738

entry_scan, page 75 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1851188122016-03-20 15:14:500NULL
1852195432016-03-21 14:52:141Walk
1853195132016-03-21 14:52:231Walk
1854195232016-03-21 14:52:261Walk
1855195332016-03-21 14:52:451Walk
1856195032016-03-21 14:52:511Walk
1857198012016-03-21 15:21:251Walk
1858197912016-03-21 15:21:291Walk
1859198112016-03-22 10:27:391Metro
1860185312016-03-22 11:13:261Walk
1861185212016-03-22 11:13:541Walk
1862199042016-03-25 12:17:331Bus
1863198942016-03-25 12:18:111Bus
1864199652016-03-26 09:41:401Bus
1865199832016-03-26 09:55:581Metro
1866199732016-03-26 09:56:261Metro
1867199922016-03-26 10:12:581Private Vehicle
1868200022016-03-26 10:13:071Private Vehicle
1869184412016-03-26 15:12:101Walk
1870184512016-03-26 15:12:151Walk
1871197612016-03-26 15:27:291Walk
1872197712016-03-26 15:27:371Walk
1873198252016-03-28 10:45:011Other
1874198812016-03-28 11:04:581Other
1875198712016-03-28 11:05:041Other
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;