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,751–1,775 of 9,738

entry_scan, page 71 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1751148812016-03-03 10:40:491Bus
1752148912016-03-03 10:41:041Bus
1753149312016-03-03 10:42:041Bus
1754149612016-03-03 10:42:151Bus
1755149812016-03-03 10:43:191Bus
1756149912016-03-03 10:43:341Bus
1757179812016-03-04 09:01:181Walk
1758182322016-03-05 13:04:401Metro
1759182422016-03-05 13:04:571Metro
1760182422016-03-05 15:40:020NULL
1761182322016-03-05 16:49:560NULL
1762186542016-03-06 10:42:441Metro
1763186442016-03-06 10:42:461Metro
1764186312016-03-06 10:56:111Metro
1765185912016-03-06 10:56:171Metro
1766186112016-03-06 10:56:171Metro
1767186012016-03-06 10:56:221Metro
1768186212016-03-06 10:56:351Metro
1769186612016-03-07 10:25:061Bus
1770186712016-03-07 10:25:391Bus
1771180822016-03-08 10:01:551Metro
1772187822016-03-09 12:55:201Bus
1773187922016-03-09 12:56:011Bus
1774183922016-03-10 11:09:261Metro
1775183822016-03-10 11:09:291Metro
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;