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

entry_scan, page 143 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3551373222017-04-08 10:23:451Metro
3552368822017-04-08 16:57:021Metro
3553368722017-04-08 16:57:161Metro
3554373042017-04-09 11:32:571Bus
3555374122017-04-11 11:27:031Private Vehicle
3556373332017-04-12 11:25:481Private Vehicle
3557374352017-04-12 12:02:441Walk
3558374252017-04-12 12:02:481Walk
3559374552017-04-12 12:02:521Walk
3560374452017-04-12 12:03:091Walk
3561374652017-04-12 12:03:161Walk
3562374352017-04-12 13:42:520NULL
3563374252017-04-12 14:05:150NULL
3564374442017-04-12 14:33:440NULL
3565374652017-04-12 14:38:490NULL
3566375812017-04-12 14:45:091Taxi
3567374522017-04-12 15:25:040NULL
3568372312017-04-13 12:58:421Walk
3569372412017-04-13 12:58:441Walk
3570376522017-04-14 11:15:031Private Vehicle
3571376322017-04-14 11:15:091Private Vehicle
3572376422017-04-14 11:15:331Private Vehicle
3573376222017-04-14 11:15:441Private Vehicle
3574375012017-04-14 11:22:261Walk
3575375212017-04-14 11:22:351Walk
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;