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,801–1,825 of 9,738

entry_scan, page 73 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1801168742016-03-18 12:38:371Bus
1802169042016-03-18 12:38:441Bus
1803168842016-03-18 12:39:001Bus
1804169942016-03-18 12:39:041Bus
1805169442016-03-18 12:39:221Bus
1806169242016-03-18 12:39:321Bus
1807169742016-03-18 12:39:351Bus
1808169542016-03-18 12:39:381Bus
1809171042016-03-18 12:39:521Bus
1810170742016-03-18 12:39:561Bus
1811170342016-03-18 12:40:001Bus
1812170642016-03-18 12:40:031Bus
1813170242016-03-18 12:40:121Bus
1814172242016-03-18 12:40:241Bus
1815171142016-03-18 12:40:311Bus
1816172642016-03-18 12:40:361Bus
1817170042016-03-18 12:40:381Bus
1818171342016-03-18 12:40:451Bus
1819170942016-03-18 12:40:471Bus
1820171742016-03-18 12:41:131Bus
1821171242016-03-18 12:41:141Bus
1822170442016-03-18 12:41:201Bus
1823171442016-03-18 12:41:521Bus
1824171942016-03-18 12:41:521Bus
1825171542016-03-18 12:42:021Bus
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;