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 3,926–3,950 of 9,738

entry_scan, page 158 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3926392612017-06-16 09:13:471Train
3927405022017-06-16 11:28:281Metro
3928404922017-06-16 11:28:301Metro
3929405142017-06-16 11:49:391Walk
3930405212017-06-16 11:50:421Walk
3931405312017-06-16 11:50:481Walk
3932405212017-06-16 14:24:290NULL
3933405312017-06-16 14:46:340NULL
3934405612017-06-18 10:57:401Metro
3935405422017-06-18 16:02:421Private Vehicle
3936405522017-06-18 16:03:101Private Vehicle
3937398712017-06-18 16:11:001Walk
3938398612017-06-18 16:11:411Walk
3939404822017-06-19 10:05:321Walk
3940406312017-06-19 10:33:181Metro
3941406422017-06-19 12:39:071Metro
3942406522017-06-19 12:39:421Metro
3943405712017-06-21 10:00:051Metro
3944406652017-06-21 10:09:551Other
3945406752017-06-21 10:10:201Other
3946406852017-06-21 10:10:281Other
3947406952017-06-21 11:01:131Walk
3948407152017-06-21 12:01:511Metro
3949407052017-06-21 12:01:561Metro
3950407252017-06-21 12:02:101Metro
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;