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,601–4,625 of 9,738

entry_scan, page 185 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4601410612017-10-26 12:26:571Bus
4602410712017-10-26 12:27:001Bus
4603410912017-10-26 12:27:281Bus
4604411712017-10-26 12:27:371Bus
4605412012017-10-26 12:27:401Bus
4606411212017-10-26 12:27:421Bus
4607412112017-10-26 12:27:441Bus
4608411012017-10-26 12:27:521Bus
4609411812017-10-26 12:27:521Bus
4610411612017-10-26 12:28:201Bus
4611411312017-10-26 12:28:221Bus
4612412312017-10-26 12:28:221Bus
4613411512017-10-26 12:28:371Bus
4614413212017-10-26 12:28:581Bus
4615411912017-10-26 12:29:041Bus
4616412812017-10-26 12:29:161Bus
4617412512017-10-26 12:29:321Bus
4618413512017-10-26 12:29:331Bus
4619413712017-10-26 12:29:471Bus
4620412212017-10-26 12:30:221Bus
4621413012017-10-26 12:30:321Bus
4622413312017-10-26 12:30:321Bus
4623413812017-10-26 12:30:461Bus
4624412712017-10-26 12:30:501Bus
4625412912017-10-26 12:31:181Bus
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;