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 2,901–2,925 of 9,738

entry_scan, page 117 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
2901301422016-11-11 14:38:391Walk
2902301742016-11-12 10:03:541Metro
2903301842016-11-12 10:04:411Metro
2904301022016-11-12 10:29:131Walk
2905300922016-11-12 10:29:161Walk
2906301022016-11-12 12:10:110NULL
2907300922016-11-12 13:12:420NULL
2908299342016-11-13 10:31:171Metro
2909299442016-11-13 10:31:321Metro
2910301922016-11-13 12:32:311Walk
2911302212016-11-14 10:50:151Metro
2912302012016-11-14 10:50:161Metro
2913302112016-11-14 10:50:301Metro
2914299812016-11-14 12:01:261Walk
2915299912016-11-14 12:01:271Walk
2916302442016-11-15 15:56:281Walk
2917302342016-11-15 15:56:531Walk
2918302552016-11-17 11:05:291Walk
2919302652016-11-17 11:05:371Walk
2920302752016-11-17 11:05:591Walk
2921301112016-11-17 11:12:211Metro
2922303212016-11-20 09:56:421Metro
2923303312016-11-20 09:57:111Metro
2924303112016-11-20 09:57:201Metro
2925303412016-11-20 09:57:211Metro
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;