diff --git a/air-quality/schema.sql b/air-quality/schema.sql index d028097..d5a406b 100644 --- a/air-quality/schema.sql +++ b/air-quality/schema.sql @@ -5,14 +5,14 @@ CREATE DATABASE airquality; CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE; CREATE TABLE measurement_types ( - parameter_id SERIAL PRIMARY KEY, + parameter_id INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, parameter TEXT NOT NULL, unit TEXT NOT NULL, UNIQUE(parameter, unit) ); CREATE TABLE locations ( - location_id SERIAL PRIMARY KEY, + location_id INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, city_name TEXT NOT NULL, country_name TEXT NOT NULL, location_name TEXT NOT NULL,