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,326–3,350 of 9,738

entry_scan, page 134 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3326359012017-03-06 09:40:291Other
3327359712017-03-06 11:08:281Metro
3328359812017-03-06 11:08:291Metro
3329359612017-03-06 11:08:491Metro
3330359512017-03-06 11:08:591Metro
3331360132017-03-07 10:15:221Metro
3332360232017-03-07 10:16:081Metro
3333360312017-03-07 12:53:531Walk
3334360412017-03-07 12:53:561Walk
3335360512017-03-08 09:15:591Walk
3336360612017-03-08 09:16:281Walk
3337358212017-03-08 09:56:521Walk
3338358112017-03-08 09:57:331Walk
3339356352017-03-08 10:46:171Metro
3340360722017-03-08 13:48:371Metro
3341360822017-03-08 13:49:151Metro
3342361142017-03-10 12:30:331Taxi
3343361042017-03-10 12:30:361Taxi
3344353712017-03-10 15:46:171Private Vehicle
3345353812017-03-10 15:46:351Private Vehicle
3346356552017-03-11 11:47:331Taxi
3347356452017-03-11 11:47:371Taxi
3348356652017-03-11 11:47:521Taxi
3349356752017-03-11 11:48:091Taxi
3350360912017-03-12 10:55:321Metro
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;