 --
 
 CREATE TABLE "EgaugeEnergyAutoload" (
-    house_id integer NOT NULL,
+    egauge_id integer NOT NULL,
     datetime timestamp(6) without time zone NOT NULL,
     use_kw double precision,
     gen_kw double precision,

    solarpump_kw double precision,
    upload_date timestamp(6) without time zone,
    microwave_kw double precision,
    acplus_kw double precision
);



--

ALTER TABLE ONLY "EgaugeEnergyAutoload"
    ADD CONSTRAINT "EgaugeEnergyAutoload_pkey" PRIMARY KEY (egauge_id, datetime);


--
