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 7,601–7,625 of 9,738

entry_scan, page 305 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7601789112019-03-24 09:34:171Metro
7602781412019-03-25 10:26:051Metro
7603781542019-03-26 12:03:201Metro
7604781642019-03-26 12:03:301Metro
7605781842019-03-26 12:03:311Metro
7606781742019-03-26 12:03:331Metro
7607790212019-03-27 09:47:061Metro
7608790342019-03-27 11:15:071Taxi
7609790442019-03-27 11:15:121Taxi
7610790542019-03-27 11:15:211Taxi
7611790642019-03-27 11:15:281Taxi
7612772822019-03-28 10:32:401Walk
7613789412019-03-29 14:25:031Walk
7614791312019-03-29 15:18:031Metro
7615780732019-03-30 09:23:191Bus
7616780832019-03-30 09:23:411Bus
7617791412019-03-30 09:50:401Walk
7618791712019-03-30 09:50:521Walk
7619791612019-03-30 09:50:541Walk
7620791512019-03-30 09:51:231Walk
7621789852019-03-30 12:52:391Walk
7622789752019-03-30 12:52:461Walk
7623789652019-03-30 12:52:541Walk
7624789952019-03-30 12:53:141Walk
7625789552019-03-30 12:53:221Walk
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;