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 6,951–6,975 of 9,738

entry_scan, page 279 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
6951698112018-12-04 14:03:071Bus
6952699112018-12-04 14:03:101Bus
6953697812018-12-04 14:03:201Bus
6954697912018-12-04 14:03:351Bus
6955698412018-12-04 14:04:351Bus
6956698512018-12-04 14:04:501Bus
6957699012018-12-04 14:04:511Bus
6958699812018-12-04 14:04:541Bus
6959699912018-12-04 14:05:051Bus
6960699512018-12-04 14:05:431Bus
6961699312018-12-04 14:06:101Bus
6962723212018-12-05 10:41:111Metro
6963723112018-12-05 10:41:331Metro
6964721612018-12-05 11:44:261Walk
6965721512018-12-05 11:44:371Walk
6966723652018-12-06 11:00:591Walk
6967723452018-12-06 11:01:081Walk
6968723552018-12-06 11:01:271Walk
6969723352018-12-06 11:01:381Walk
6970724112018-12-07 09:17:571Metro
6971724212018-12-07 09:18:291Metro
6972724352018-12-07 09:32:171Walk
6973724452018-12-07 09:32:551Walk
6974724552018-12-07 09:32:551Walk
6975724652018-12-07 09:33:011Walk
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;