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,351–3,375 of 9,738

entry_scan, page 135 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
3351359932017-03-13 09:43:241Walk
3352360032017-03-13 09:43:451Walk
3353361832017-03-14 09:55:351Walk
3354334242017-03-14 11:02:591Walk
3355334442017-03-14 11:03:071Walk
3356334342017-03-14 11:03:141Walk
3357334842017-03-14 11:03:291Walk
3358334542017-03-14 11:03:351Walk
3359334642017-03-14 11:03:591Walk
3360335042017-03-14 11:04:021Walk
3361335642017-03-14 11:04:041Walk
3362334942017-03-14 11:04:111Walk
3363336242017-03-14 11:04:341Walk
3364335242017-03-14 11:04:381Walk
3365336642017-03-14 11:04:441Walk
3366335142017-03-14 11:04:591Walk
3367335342017-03-14 11:04:591Walk
3368335842017-03-14 11:04:591Walk
3369335442017-03-14 11:05:001Walk
3370336142017-03-14 11:05:231Walk
3371337042017-03-14 11:05:291Walk
3372335542017-03-14 11:05:471Walk
3373335742017-03-14 11:06:011Walk
3374336942017-03-14 11:06:111Walk
3375336742017-03-14 11:06:391Walk
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;