CREATE TABLE production ( time_start TIMESTAMPTZ NOT NULL, hour INTEGER NOT NULL, kwh DOUBLE PRECISION, PRIMARY KEY (time_start, hour) );