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,551–4,575 of 9,738

entry_scan, page 183 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4551463212017-10-10 09:39:351Bus
4552463412017-10-10 09:40:011Bus
4553463012017-10-10 09:40:211Bus
4554463112017-10-10 09:40:361Bus
4555463512017-10-10 09:40:551Bus
4556476412017-10-10 10:46:571Walk
4557474832017-10-10 11:37:331Bus
4558475822017-10-10 15:36:401Metro
4559476022017-10-10 15:36:531Metro
4560475922017-10-10 15:36:571Metro
4561476122017-10-10 15:36:591Metro
4562475512017-10-11 11:03:051Walk
4563475312017-10-11 11:03:161Walk
4564475412017-10-11 11:03:191Walk
4565475612017-10-11 11:03:241Walk
4566476512017-10-11 11:14:101Metro
4567476622017-10-12 10:14:201Walk
4568476912017-10-14 14:52:321Walk
4569477012017-10-15 12:58:121Taxi
4570477112017-10-15 12:58:321Taxi
4571477212017-10-15 12:58:551Taxi
4572477312017-10-15 13:58:471Metro
4573477652017-10-17 16:23:561Metro
4574477852017-10-17 16:24:151Metro
4575477552017-10-17 16:24:161Metro
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;