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 5,576–5,600 of 9,738

entry_scan, page 224 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5576575952018-05-13 10:04:481Taxi
5577575852018-05-13 10:05:201Taxi
5578576012018-05-13 10:49:501Walk
5579576112018-05-13 10:49:531Walk
5580575152018-05-13 11:58:021Walk
5581575252018-05-13 11:58:101Walk
5582575352018-05-13 11:58:191Walk
5583575052018-05-13 11:58:291Walk
5584576252018-05-13 13:02:021Metro
5585576322018-05-13 13:15:191Private Vehicle
5586577842018-05-15 10:03:471Walk
5587577742018-05-15 10:04:021Walk
5588577642018-05-15 10:04:061Walk
5589577542018-05-15 10:04:271Walk
5590578142018-05-15 10:16:161Metro
5591578242018-05-15 10:16:171Metro
5592578042018-05-15 10:16:221Metro
5593577942018-05-15 10:16:431Metro
5594568912018-05-16 09:49:581Other
5595574612018-05-16 11:10:031Metro
5596574512018-05-16 11:10:061Metro
5597574712018-05-16 11:10:221Metro
5598578622018-05-16 11:32:161Private Vehicle
5599578522018-05-16 11:32:351Private Vehicle
5600578932018-05-17 11:10:501Metro
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;