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 4,101–4,125 of 9,738

entry_scan, page 165 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4101427212017-07-18 09:47:571Metro
4102427512017-07-18 09:48:081Metro
4103427412017-07-18 09:48:181Metro
4104427612017-07-18 09:48:261Metro
4105416432017-07-18 11:01:461Metro
4106427742017-07-18 11:39:211Other
4107428222017-07-18 16:36:001Walk
4108428022017-07-18 16:36:141Walk
4109428122017-07-18 16:36:311Walk
4110418132017-07-19 10:47:231Taxi
4111424512017-07-19 11:24:121Walk
4112424712017-07-19 11:24:191Walk
4113424612017-07-19 11:24:361Walk
4114429452017-07-20 14:55:191Other
4115429312017-07-21 09:38:391Metro
4116429012017-07-21 09:38:481Metro
4117429112017-07-21 09:38:501Metro
4118428912017-07-21 09:38:591Metro
4119429212017-07-21 09:39:041Metro
4120426712017-07-22 12:26:521Walk
4121426412017-07-22 12:26:531Walk
4122426512017-07-22 12:27:031Walk
4123426612017-07-22 12:27:131Walk
4124429922017-07-23 10:17:031Metro
4125429812017-07-23 11:00:561Walk
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;