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,776–1,800 of 9,738

entry_scan, page 72 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
1776183722016-03-10 11:09:401Metro
1777186832016-03-10 12:28:261Metro
1778187032016-03-10 12:28:291Metro
1779186932016-03-10 12:28:551Metro
1780187132016-03-10 12:28:571Metro
1781188922016-03-12 16:47:401Metro
1782188822016-03-12 16:47:431Metro
1783189122016-03-12 16:47:581Metro
1784189022016-03-12 16:48:051Metro
1785185712016-03-15 10:56:021Walk
1786185812016-03-15 10:56:271Walk
1787185612016-03-15 10:56:431Walk
1788188512016-03-16 11:33:591Walk
1789188312016-03-16 11:34:041Walk
1790188412016-03-16 11:34:061Walk
1791188212016-03-16 11:34:311Walk
1792188652016-03-16 11:56:441Walk
1793187512016-03-16 12:53:541Taxi
1794187612016-03-16 12:53:571Taxi
1795187412016-03-16 12:54:221Taxi
1796187312016-03-16 12:54:271Taxi
1797187712016-03-16 12:54:361Taxi
1798195912016-03-16 13:41:501Taxi
1799196452016-03-18 11:09:111Bus
1800168642016-03-18 12:38:321Bus
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;