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

entry_scan, page 159 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3951407712017-06-22 14:36:451Walk
3952407812017-06-22 14:36:571Walk
3953407512017-06-22 14:37:021Walk
3954407612017-06-22 14:37:061Walk
3955407912017-06-23 15:05:491Metro
3956406112017-06-24 11:09:471Bus
3957408612017-06-24 11:41:241Metro
3958408512017-06-24 11:41:461Metro
3959408912017-06-25 11:39:481Walk
3960409012017-06-25 11:40:111Walk
3961409112017-06-25 13:34:491Bus
3962409212017-06-25 13:34:541Bus
3963408212017-06-25 14:26:541Bus
3964408112017-06-25 14:26:561Bus
3965409412017-06-25 14:43:591Train
3966409512017-06-25 14:44:101Train
3967409312017-06-25 14:44:391Train
3968408422017-06-26 10:44:001Metro
3969408322017-06-26 10:44:211Metro
3970409832017-06-26 11:13:371Taxi
3971409612017-06-28 14:33:101Bus
3972409712017-06-28 14:33:111Bus
3973405912017-06-29 14:45:541Walk
3974406012017-06-29 14:46:051Walk
3975414222017-06-30 14:32:041Metro
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;