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,176–8,200 of 9,738

entry_scan, page 328 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
8176834122019-06-11 10:53:571Other
8177834022019-06-11 10:54:101Other
8178831412019-06-11 12:29:061Walk
8179831312019-06-11 12:29:091Walk
8180827622019-06-11 15:09:231Metro
8181832412019-06-12 10:29:221Taxi
8182834842019-06-13 12:49:111Walk
8183834942019-06-13 12:49:161Walk
8184835042019-06-13 12:49:161Walk
8185834742019-06-13 12:49:361Walk
8186833612019-06-13 13:04:431Taxi
8187829812019-06-14 09:47:341Metro
8188836042019-06-14 12:25:531Bus
8189836142019-06-14 12:26:051Bus
8190823612019-06-14 15:37:031Metro
8191823712019-06-14 15:37:041Metro
8192831142019-06-14 15:46:271Walk
8193831042019-06-14 15:46:501Walk
8194835722019-06-15 10:58:541Bus
8195835522019-06-15 10:58:581Bus
8196835622019-06-15 10:59:001Bus
8197837612019-06-15 13:22:511Train
8198837412019-06-15 13:22:521Train
8199837512019-06-15 13:23:221Train
8200838412019-06-16 10:18:321Metro
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;