Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
New fields
Browse files Browse the repository at this point in the history
Added type_id, ns_direction, ew_direction, dayofweek
  • Loading branch information
schnuerle authored Jul 16, 2018
1 parent 31ddaa0 commit 8a47f61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ CREATE TABLE waze.jams
"blocking_alert_id" TEXT,
"line" JSONB,
"type" TEXT,
"ns_direction" TEXT, -- N or S, eg. north or south, direction jam start to jam line heads
"ew_direction" TEXT, -- E or W, eg. east or west
"dayofweek" INTEGER, -- 1-7, eg Monday - Sunday
"turn_line" JSONB,
"datafile_id" BIGINT NOT NULL REFERENCES waze.data_files (id)
);
Expand All @@ -72,6 +75,8 @@ CREATE TABLE waze.alerts
"confidence" INTEGER,
"type" TEXT,
"subtype" TEXT,
"type_id" INTEGER, -- links to alert_types table
"dayofweek" INTEGER, -- 1-7, eg Monday - Sunday
"report_by_municipality_user" BOOLEAN,
"thumbs_up" INTEGER,
"jam_uuid" TEXT,
Expand Down

0 comments on commit 8a47f61

Please sign in to comment.