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

entry_scan, page 357 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8901862112019-10-15 13:45:341Bus
8902862912019-10-15 13:45:381Bus
8903862612019-10-15 13:46:171Bus
8904862812019-10-15 13:47:291Bus
8905863012019-10-15 13:47:311Bus
8906913812019-10-16 11:00:501Walk
8907913912019-10-16 11:01:101Walk
8908916812019-10-16 14:05:431Metro
8909916912019-10-16 14:05:551Metro
8910917812019-10-17 09:03:411Bus
8911917712019-10-17 09:03:501Bus
8912908752019-10-17 09:48:281Metro
8913912912019-10-17 10:55:531Bus
8914913012019-10-17 10:56:011Bus
8915912812019-10-17 10:56:301Bus
8916922842019-10-17 15:25:031Walk
8917922942019-10-17 15:25:211Walk
8918917912019-10-18 09:26:241Private Vehicle
8919923512019-10-18 10:23:021Bus
8920923412019-10-18 10:23:151Bus
8921923512019-10-18 13:29:080NULL
8922923412019-10-18 13:44:250NULL
8923915542019-10-18 16:47:411Bus
8924915442019-10-18 16:47:431Bus
8925923932019-10-19 10:39:481Walk
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;