aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2022-10-04 07:27:38 +0200
committerDennis Eriksen <d@ennis.no>2022-10-04 07:27:38 +0200
commit7c21bc6c6d7c43c2014d69043777ce833cf62c4c (patch)
treebf27f89c27c27db19c5f179b63d642a825804cd2 /schema.sql
parentAdding doc on how to obtain api-key from entsoe (diff)
downloadenergyscripts-7c21bc6c6d7c43c2014d69043777ce833cf62c4c.tar.gz
adding grid tariff from elvia
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql26
1 files changed, 26 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
index 89d8e77..e1ac14c 100644
--- a/schema.sql
+++ b/schema.sql
@@ -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
--