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,551–7,575 of 9,738

entry_scan, page 303 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
7551750412019-03-15 13:07:261Metro
7552752012019-03-15 13:07:511Metro
7553751712019-03-15 13:08:011Metro
7554752212019-03-15 13:08:111Metro
7555751212019-03-15 13:08:161Metro
7556751912019-03-15 13:08:231Metro
7557751112019-03-15 13:08:371Metro
7558752512019-03-15 13:08:411Metro
7559751512019-03-15 13:08:551Metro
7560777632019-03-15 16:56:031Walk
7561777832019-03-15 16:56:241Walk
7562777532019-03-15 16:56:261Walk
7563777732019-03-15 16:56:341Walk
7564777932019-03-15 16:56:381Walk
7565772342019-03-17 10:26:301Metro
7566772242019-03-17 10:26:511Metro
7567774842019-03-17 16:21:021Metro
7568774942019-03-17 16:21:041Metro
7569774642019-03-17 16:21:141Metro
7570775042019-03-17 16:21:181Metro
7571774742019-03-17 16:21:351Metro
7572781112019-03-18 10:40:241Metro
7573781932019-03-18 12:23:571Walk
7574782042019-03-18 14:57:481Private Vehicle
7575762912019-03-19 10:47:191Other
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;