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,176–3,200 of 9,738

entry_scan, page 128 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3176340032017-01-28 10:35:461Walk
3177339832017-01-28 10:36:001Walk
3178339932017-01-28 10:36:031Walk
3179349322017-01-31 11:12:541Metro
3180347612017-02-01 10:47:131Metro
3181347512017-02-01 10:47:451Metro
3182347412017-02-01 10:47:491Metro
3183347712017-02-01 10:47:591Metro
3184349752017-02-03 14:58:361Train
3185349852017-02-03 14:59:161Train
3186350422017-02-05 11:08:191Walk
3187350322017-02-05 11:08:361Walk
3188350722017-02-05 11:11:361Private Vehicle
3189350622017-02-05 11:11:391Private Vehicle
3190350522017-02-05 11:12:001Private Vehicle
3191351312017-02-06 09:08:041Walk
3192348112017-02-06 11:33:011Metro
3193348012017-02-06 11:33:031Metro
3194349542017-02-07 10:29:071Walk
3195349642017-02-07 10:29:191Walk
3196348212017-02-08 10:31:281Metro
3197352112017-02-11 11:42:591Metro
3198352212017-02-11 11:43:311Metro
3199352412017-02-11 13:53:011Walk
3200352312017-02-11 13:53:121Walk
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;