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,551–1,575 of 9,738

entry_scan, page 63 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1551164312015-12-27 11:19:481Walk
1552164952015-12-28 12:42:181Bus
1553165052015-12-28 12:42:311Bus
1554165212015-12-29 10:47:051Metro
1555162422015-12-29 15:04:211Metro
1556162322015-12-29 15:04:451Metro
1557165412015-12-30 15:14:451Walk
1558165312015-12-30 15:15:181Walk
1559165512015-12-30 16:46:441Metro
1560165612015-12-30 16:46:511Metro
1561165712015-12-31 10:16:281Bus
1562165832015-12-31 12:40:201Walk
1563165932015-12-31 12:40:241Walk
1564163312016-01-01 13:48:051Walk
1565167212016-01-02 09:10:591Metro
1566167322016-01-03 09:44:411Metro
1567158452016-01-03 12:26:441Bus
1568158352016-01-03 12:27:111Bus
1569152542016-01-04 09:35:271Walk
1570152642016-01-04 09:35:551Walk
1571164632016-01-05 10:13:181Bus
1572164532016-01-05 10:13:501Bus
1573164832016-01-05 10:13:511Bus
1574164732016-01-05 10:13:581Bus
1575164432016-01-05 10:13:591Bus
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;