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,526–5,550 of 9,738

entry_scan, page 222 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
5526538542018-05-07 11:55:311Bus
5527539142018-05-07 11:55:371Bus
5528538942018-05-07 11:55:551Bus
5529539542018-05-07 11:55:551Bus
5530540642018-05-07 11:55:561Bus
5531541442018-05-07 11:55:591Bus
5532539742018-05-07 11:56:111Bus
5533541842018-05-07 11:56:151Bus
5534541142018-05-07 11:56:211Bus
5535541242018-05-07 11:56:261Bus
5536539942018-05-07 11:56:271Bus
5537539242018-05-07 11:56:311Bus
5538541342018-05-07 11:56:311Bus
5539542342018-05-07 11:56:351Bus
5540540842018-05-07 11:56:371Bus
5541541542018-05-07 11:56:411Bus
5542540142018-05-07 11:57:311Bus
5543540742018-05-07 11:57:311Bus
5544540542018-05-07 11:57:431Bus
5545541942018-05-07 11:57:431Bus
5546542242018-05-07 11:58:011Bus
5547540042018-05-07 11:58:071Bus
5548539642018-05-07 11:58:161Bus
5549542442018-05-07 11:59:001Bus
5550540342018-05-07 11:59:091Bus
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;