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,726–1,750 of 9,738

entry_scan, page 70 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1726147612016-03-03 10:35:571Bus
1727147112016-03-03 10:36:071Bus
1728147312016-03-03 10:36:311Bus
1729148212016-03-03 10:36:391Bus
1730147212016-03-03 10:36:491Bus
1731147712016-03-03 10:36:491Bus
1732147412016-03-03 10:36:551Bus
1733150112016-03-03 10:36:551Bus
1734148712016-03-03 10:37:141Bus
1735148012016-03-03 10:37:191Bus
1736148112016-03-03 10:37:291Bus
1737147512016-03-03 10:37:341Bus
1738149012016-03-03 10:37:351Bus
1739147812016-03-03 10:37:471Bus
1740147912016-03-03 10:38:001Bus
1741148412016-03-03 10:38:211Bus
1742148312016-03-03 10:38:311Bus
1743149112016-03-03 10:38:401Bus
1744148612016-03-03 10:39:071Bus
1745148512016-03-03 10:39:181Bus
1746149712016-03-03 10:39:341Bus
1747149412016-03-03 10:39:391Bus
1748150012016-03-03 10:40:011Bus
1749149212016-03-03 10:40:191Bus
1750149512016-03-03 10:40:221Bus
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;