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 3,851–3,875 of 9,738

entry_scan, page 155 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3851401422017-06-08 13:00:071Walk
3852401122017-06-08 13:00:271Walk
3853401012017-06-08 13:35:010NULL
3854401222017-06-08 14:51:040NULL
3855400912017-06-08 15:04:320NULL
3856401322017-06-08 15:20:370NULL
3857401422017-06-08 15:40:370NULL
3858401122017-06-08 16:06:300NULL
3859401522017-06-08 16:14:430NULL
3860401622017-06-09 12:45:341Bus
3861401912017-06-10 10:07:501Walk
3862401812017-06-10 10:08:101Walk
3863402112017-06-10 10:08:101Walk
3864402012017-06-10 10:08:121Walk
3865402212017-06-10 10:08:141Walk
3866402512017-06-11 09:04:561Taxi
3867402612017-06-11 09:05:011Taxi
3868402712017-06-11 09:05:071Taxi
3869402812017-06-11 09:05:261Taxi
3870402912017-06-11 11:49:221Metro
3871403012017-06-11 11:49:241Metro
3872403412017-06-11 13:13:391Walk
3873403312017-06-11 13:13:521Walk
3874403112017-06-11 13:15:431Metro
3875403212017-06-11 13:15:581Metro
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;