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 7,726–7,750 of 9,738

entry_scan, page 310 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7726807612019-04-14 13:43:041Walk
7727807122019-04-14 13:49:110NULL
7728806842019-04-14 15:46:201Taxi
7729807042019-04-14 15:46:411Taxi
7730806942019-04-14 15:46:551Taxi
7731806742019-04-14 15:47:001Taxi
7732804312019-04-15 09:13:391Other
7733804412019-04-15 09:14:181Other
7734807712019-04-15 10:10:081Metro
7735805222019-04-15 10:56:471Metro
7736805422019-04-15 10:56:531Metro
7737805522019-04-15 10:57:101Metro
7738805122019-04-15 10:57:171Metro
7739805322019-04-15 10:57:351Metro
7740782512019-04-15 12:01:341Bus
7741782612019-04-15 12:01:481Bus
7742782812019-04-15 12:01:521Bus
7743782712019-04-15 12:01:581Bus
7744782912019-04-15 12:02:061Bus
7745783212019-04-15 12:02:091Bus
7746783012019-04-15 12:02:191Bus
7747783412019-04-15 12:02:381Bus
7748784112019-04-15 12:02:441Bus
7749783112019-04-15 12:02:521Bus
7750784912019-04-15 12:03:021Bus
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;