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,526–4,550 of 9,738

entry_scan, page 182 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4526461612017-10-10 09:32:491Bus
4527462012017-10-10 09:33:051Bus
4528460912017-10-10 09:33:061Bus
4529461012017-10-10 09:33:131Bus
4530460712017-10-10 09:33:181Bus
4531462612017-10-10 09:33:291Bus
4532460512017-10-10 09:33:331Bus
4533460612017-10-10 09:34:091Bus
4534461512017-10-10 09:34:091Bus
4535461812017-10-10 09:34:091Bus
4536462212017-10-10 09:34:091Bus
4537462712017-10-10 09:34:391Bus
4538461712017-10-10 09:34:481Bus
4539460812017-10-10 09:34:511Bus
4540462812017-10-10 09:35:191Bus
4541462312017-10-10 09:35:421Bus
4542461212017-10-10 09:35:511Bus
4543461412017-10-10 09:36:011Bus
4544461312017-10-10 09:36:061Bus
4545462412017-10-10 09:36:211Bus
4546463312017-10-10 09:36:331Bus
4547462112017-10-10 09:36:451Bus
4548462512017-10-10 09:37:021Bus
4549461912017-10-10 09:37:361Bus
4550462912017-10-10 09:39:311Bus
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;