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 9,476–9,500 of 9,738

entry_scan, page 380 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9476956412019-12-28 11:10:101Bus
9477955812019-12-28 11:48:541Bus
9478961712019-12-28 12:07:161Metro
9479957212019-12-28 12:32:391Metro
9480957312019-12-28 12:33:101Metro
9481957312019-12-28 14:13:450NULL
9482957212019-12-28 14:54:470NULL
9483957112019-12-28 16:26:311Metro
9484956722019-12-28 16:30:051Walk
9485962022019-12-29 09:42:331Metro
9486962112019-12-29 11:06:381Metro
9487962212019-12-29 11:07:171Metro
9488959012019-12-29 13:20:481Walk
9489962412019-12-30 09:04:341Metro
9490962312019-12-30 09:05:191Metro
9491952412019-12-30 09:43:531Walk
9492952512019-12-30 09:44:091Walk
9493962522019-12-30 11:01:591Walk
9494958122019-12-30 11:46:451Metro
9495962712019-12-30 11:47:261Metro
9496962612019-12-30 11:47:271Metro
9497947912019-12-31 11:24:121Metro
9498961142020-01-01 10:00:031Taxi
9499960942020-01-01 10:00:181Taxi
9500961242020-01-01 10:00:181Taxi
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;