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,276–5,300 of 9,738

entry_scan, page 212 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5276544232018-03-30 14:16:181Walk
5277549222018-03-31 09:10:211Metro
5278549322018-03-31 09:10:421Metro
5279549122018-03-31 09:10:471Metro
5280548722018-03-31 12:12:441Metro
5281548822018-03-31 12:12:591Metro
5282548922018-03-31 12:13:061Metro
5283548622018-03-31 12:13:071Metro
5284549022018-03-31 12:13:121Metro
5285549452018-03-31 13:22:001Walk
5286549552018-03-31 13:22:081Walk
5287549852018-03-31 13:22:081Walk
5288549652018-03-31 13:22:261Walk
5289549752018-03-31 13:22:281Walk
5290550012018-04-01 09:43:501Other
5291546152018-04-01 13:08:051Bus
5292547612018-04-01 14:44:081Walk
5293547532018-04-01 15:58:401Train
5294547432018-04-01 15:58:441Train
5295550512018-04-02 09:13:051Metro
5296550412018-04-02 09:13:131Metro
5297545212018-04-02 11:48:331Walk
5298545312018-04-02 11:48:331Walk
5299551122018-04-02 14:32:161Train
5300535012018-04-04 09:06:141Metro
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;