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 5,951–5,975 of 9,738

entry_scan, page 239 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5951624912018-07-17 14:15:371Walk
5952625012018-07-17 14:15:391Walk
5953625212018-07-17 14:15:401Walk
5954625112018-07-17 14:16:021Walk
5955624822018-07-17 14:29:471Metro
5956621522018-07-17 16:34:110NULL
5957625622018-07-18 10:05:061Bus
5958625422018-07-18 10:05:251Bus
5959625322018-07-18 10:05:291Bus
5960625522018-07-18 10:05:371Bus
5961625732018-07-18 11:52:021Walk
5962625832018-07-18 11:52:051Walk
5963625912018-07-18 12:23:521Metro
5964626122018-07-18 16:43:111Private Vehicle
5965626022018-07-18 16:43:121Private Vehicle
5966619932018-07-18 16:59:381Metro
5967620132018-07-18 16:59:381Metro
5968620032018-07-18 17:00:131Metro
5969626642018-07-19 09:31:501Walk
5970626742018-07-19 09:32:151Walk
5971608812018-07-19 10:47:231Walk
5972608912018-07-19 10:47:401Walk
5973627012018-07-20 10:48:441Walk
5974627222018-07-21 09:31:171Private Vehicle
5975627122018-07-21 09:31:351Private Vehicle
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;