diff options
author | Dennis Eriksen <d@ennis.no> | 2022-10-04 07:27:38 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2022-10-04 07:27:38 +0200 |
commit | 7c21bc6c6d7c43c2014d69043777ce833cf62c4c (patch) | |
tree | bf27f89c27c27db19c5f179b63d642a825804cd2 /schema.sql | |
parent | Adding doc on how to obtain api-key from entsoe (diff) | |
download | energyscripts-7c21bc6c6d7c43c2014d69043777ce833cf62c4c.tar.gz |
adding grid tariff from elvia
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -38,6 +38,24 @@ CREATE TABLE public.elvia ( ALTER TABLE public.elvia OWNER TO dennis; -- +-- Name: elvia_gridtariff; Type: TABLE; Schema: public; Owner: dennis +-- + +CREATE TABLE public.elvia_gridtariff ( + meteringpointid bigint NOT NULL, + starttime timestamp with time zone NOT NULL, + endtime timestamp with time zone NOT NULL, + shorttime character varying(9), + ispublicholiday boolean DEFAULT false NOT NULL, + price numeric, + priceexvat numeric, + inserted timestamp with time zone DEFAULT now() NOT NULL +); + + +ALTER TABLE public.elvia_gridtariff OWNER TO dennis; + +-- -- Name: entsoe; Type: TABLE; Schema: public; Owner: dennis -- @@ -130,6 +148,14 @@ ALTER TABLE ONLY public.elvia -- +-- Name: elvia_gridtariff elvia_gridtariff_pkey; Type: CONSTRAINT; Schema: public; Owner: dennis +-- + +ALTER TABLE ONLY public.elvia_gridtariff + ADD CONSTRAINT elvia_gridtariff_pkey PRIMARY KEY (meteringpointid, starttime, endtime); + + +-- -- Name: entsoe entsoe_pkey; Type: CONSTRAINT; Schema: public; Owner: dennis -- |