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

entry_scan, page 197 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4901497832017-12-24 13:41:261Walk
4902497532017-12-24 13:41:381Walk
4903497432017-12-24 13:41:421Walk
4904497112017-12-24 14:36:461Metro
4905499112017-12-25 15:55:421Walk
4906499012017-12-25 15:56:071Walk
4907503322017-12-27 10:13:011Metro
4908503222017-12-27 10:13:301Metro
4909503422017-12-28 13:54:281Walk
4910497212017-12-30 11:58:361Walk
4911497312017-12-30 11:58:431Walk
4912499252017-12-31 11:45:551Taxi
4913503912018-01-01 11:59:321Metro
4914503812018-01-01 13:00:261Walk
4915504332018-01-02 10:16:401Metro
4916504232018-01-02 10:17:011Metro
4917504552018-01-03 15:42:001Bus
4918505812018-01-05 11:57:341Other
4919505912018-01-05 11:57:341Other
4920505712018-01-05 11:57:351Other
4921503732018-01-06 11:11:551Train
4922498012018-01-06 12:40:121Walk
4923497912018-01-06 12:40:351Walk
4924506622018-01-07 11:01:311Train
4925505422018-01-07 13:18:241Train
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;