CREATE TABLE enapo_measurements (
    eic varchar(50) NOT NULL,
    value numeric(30, 15) NOT NULL,
	"timestamp" timestamptz NOT NULL,
	var varchar(255) NOT NULL,
    "source" varchar(20) NOT NULL,
	place_id varchar(50) NOT NULL,
	device_serial_number varchar(50) NOT NULL,
	created_at timestamp NULL,
	updated_at timestamp NULL,
	CONSTRAINT enapo_measurements_pkey PRIMARY KEY (eic, "timestamp", var, place_id)
); 