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,451–3,475 of 9,738

entry_scan, page 139 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3451361552017-03-16 14:29:481Walk
3452361752017-03-16 14:30:011Walk
3453363022017-03-17 14:40:081Other
3454351522017-03-18 11:10:241Private Vehicle
3455351622017-03-18 11:10:241Private Vehicle
3456351422017-03-18 11:10:391Private Vehicle
3457351722017-03-18 11:10:521Private Vehicle
3458363112017-03-18 11:47:431Walk
3459355722017-03-18 12:19:491Bus
3460362812017-03-20 11:13:381Bus
3461362712017-03-20 11:13:391Bus
3462362612017-03-20 11:13:471Bus
3463362922017-03-20 11:15:571Other
3464359412017-03-20 15:59:481Walk
3465368422017-03-21 11:00:451Other
3466368322017-03-21 11:00:471Other
3467369022017-03-23 14:21:121Metro
3468369232017-03-25 10:20:391Taxi
3469362412017-03-25 11:07:131Bus
3470362512017-03-25 11:07:531Bus
3471356212017-03-25 11:49:341Walk
3472356112017-03-25 11:50:111Walk
3473369112017-03-25 13:01:531Taxi
3474361322017-03-25 14:53:431Metro
3475361422017-03-25 14:53:531Metro
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;