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 4,051–4,075 of 9,738

entry_scan, page 163 of 390
scan_idINTEGERticket_id→ ticket.ticket_identrance_id→ entrance.entrance_idscanned_atTEXTis_first_entryINTEGERtransport_modeTEXT
4051414042017-07-06 15:08:541Metro
4052418532017-07-07 10:27:371Metro
4053418432017-07-07 10:28:181Metro
4054408732017-07-07 13:28:591Metro
4055408832017-07-07 13:29:141Metro
4056419012017-07-08 11:50:311Walk
4057419112017-07-08 11:50:341Walk
4058418812017-07-08 11:50:421Walk
4059418912017-07-08 11:50:491Walk
4060418712017-07-08 11:50:571Walk
4061417942017-07-08 12:58:431Bus
4062417842017-07-08 12:59:121Bus
4063418312017-07-08 13:35:501Walk
4064418212017-07-08 13:36:181Walk
4065418032017-07-09 09:12:011Metro
4066419352017-07-09 13:44:061Train
4067419432017-07-09 13:55:121Metro
4068419532017-07-09 13:55:491Metro
4069424312017-07-11 11:54:111Walk
4070424412017-07-11 11:54:451Walk
4071410012017-07-12 10:31:471Walk
4072409912017-07-12 10:32:111Walk
4073417222017-07-12 11:50:471Metro
4074417322017-07-12 11:51:251Metro
4075417122017-07-13 09:55:071Metro
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;