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,626–1,650 of 9,738

entry_scan, page 66 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1626166812016-01-24 13:56:231Walk
1627166712016-01-24 13:56:251Walk
1628167012016-01-24 13:56:341Walk
1629174922016-01-25 15:19:231Walk
1630176422016-01-26 10:46:271Private Vehicle
1631176322016-01-26 10:46:331Private Vehicle
1632176712016-01-30 12:47:231Walk
1633176912016-01-30 12:47:431Walk
1634176812016-01-30 12:47:531Walk
1635177012016-01-30 16:47:421Other
1636174312016-01-31 10:11:001Train
1637154222016-01-31 15:30:061Private Vehicle
1638154122016-01-31 15:30:201Private Vehicle
1639177522016-02-02 09:44:551Metro
1640177742016-02-03 11:01:581Walk
1641177642016-02-03 11:02:141Walk
1642177212016-02-04 12:24:121Walk
1643177112016-02-04 12:24:481Walk
1644177942016-02-07 11:14:481Taxi
1645178042016-02-07 11:14:541Taxi
1646178132016-02-07 13:19:401Walk
1647178422016-02-09 12:25:281Taxi
1648178222016-02-09 12:25:541Taxi
1649178322016-02-09 12:26:091Taxi
1650178622016-02-09 13:41:541Metro
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;