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 9,401–9,425 of 9,738

entry_scan, page 377 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9401928042019-12-20 13:56:441Bus
9402928242019-12-20 13:56:521Bus
9403925542019-12-20 13:56:561Bus
9404927542019-12-20 13:56:581Bus
9405927142019-12-20 13:57:081Bus
9406926742019-12-20 13:57:361Bus
9407925642019-12-20 13:57:381Bus
9408928342019-12-20 13:57:381Bus
9409926842019-12-20 13:57:441Bus
9410927242019-12-20 13:57:451Bus
9411925742019-12-20 13:57:521Bus
9412927942019-12-20 13:57:561Bus
9413926242019-12-20 13:57:591Bus
9414928842019-12-20 13:58:031Bus
9415926142019-12-20 13:58:081Bus
9416927742019-12-20 13:58:201Bus
9417926942019-12-20 13:58:481Bus
9418928142019-12-20 13:58:481Bus
9419927842019-12-20 13:59:041Bus
9420926642019-12-20 13:59:081Bus
9421926542019-12-20 13:59:441Bus
9422927042019-12-20 13:59:561Bus
9423927342019-12-20 14:00:321Bus
9424927642019-12-20 14:01:081Bus
9425928642019-12-20 14:01:381Bus
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;