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 9,301–9,325 of 9,738

entry_scan, page 373 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
9301947732019-12-12 11:29:371Walk
9302952822019-12-12 12:43:311Metro
9303952922019-12-12 12:43:411Metro
9304941412019-12-13 13:32:241Metro
9305954242019-12-14 14:38:511Other
9306954422019-12-14 14:42:161Walk
9307954322019-12-14 14:42:201Walk
9308954642019-12-14 15:49:201Walk
9309954542019-12-14 15:49:291Walk
9310953822019-12-14 16:19:511Metro
9311953722019-12-14 16:20:161Metro
9312954242019-12-14 17:22:170NULL
9313954112019-12-15 10:45:171Metro
9314895942019-12-15 11:05:021Bus
9315896042019-12-15 11:05:121Bus
9316896142019-12-15 11:05:221Bus
9317896342019-12-15 11:05:301Bus
9318896242019-12-15 11:05:321Bus
9319896642019-12-15 11:05:371Bus
9320896942019-12-15 11:05:421Bus
9321896542019-12-15 11:06:081Bus
9322896442019-12-15 11:06:121Bus
9323898342019-12-15 11:06:381Bus
9324897042019-12-15 11:06:521Bus
9325897542019-12-15 11:06:541Bus
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;