colouring-montreal/migrations/034.planning_livestream_data.up.sql
Mateusz Konieczny 9512d30c28 add status explanation note
this allow to handle OBS statuses, also done in this commit
2022-11-13 09:01:38 +01:00

21 lines
706 B
SQL

CREATE TABLE IF NOT EXISTS planning_data (
-- internal unique id
planning_entry_id serial PRIMARY KEY,
-- assigned by planning authority
planning_application_id VARCHAR(50),
planning_application_link VARCHAR(260),
description VARCHAR,
registered_with_local_authority_date date,
days_since_registration_cached smallint,
decision_date date,
days_since_decision_date_cached smallint,
last_synced_date date,
status VARCHAR(50),
status_before_aliasing VARCHAR(50),
status_explanation_note VARCHAR(250),
data_source VARCHAR(70),
data_source_link VARCHAR(150),
uprn bigint
);