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,901–1,925 of 9,738

entry_scan, page 77 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1901200242016-04-01 14:01:491Bus
1902201742016-04-01 14:16:491Bus
1903201442016-04-01 14:16:551Bus
1904201342016-04-01 14:17:011Bus
1905201542016-04-01 14:17:111Bus
1906201642016-04-01 14:17:141Bus
1907202322016-04-01 16:42:191Metro
1908202422016-04-01 16:42:411Metro
1909196612016-04-03 12:50:191Walk
1910196512016-04-03 12:51:011Walk
1911202812016-04-05 11:49:091Metro
1912202932016-04-06 11:18:461Bus
1913188712016-04-07 12:13:251Metro
1914203012016-04-07 15:50:461Walk
1915198312016-04-08 10:51:341Metro
1916203412016-04-08 12:38:451Walk
1917203212016-04-08 12:38:511Walk
1918203312016-04-08 12:38:551Walk
1919203112016-04-08 12:39:031Walk
1920203912016-04-10 11:37:381Bus
1921204012016-04-10 11:37:391Bus
1922204122016-04-10 12:48:131Metro
1923204222016-04-10 12:48:221Metro
1924197812016-04-10 12:56:341Private Vehicle
1925204422016-04-10 15:03:111Walk
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;