Skip to content

Commit f40108c

Browse files
authored
Add files via upload
1 parent 0a7eb6d commit f40108c

File tree

3 files changed

+708
-0
lines changed

3 files changed

+708
-0
lines changed

or_db_dump.sql

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
--
2+
-- PostgreSQL database dump
3+
--
4+
5+
-- Dumped from database version 16.4
6+
-- Dumped by pg_dump version 16.4
7+
8+
-- Started on 2024-10-26 16:44:15
9+
10+
SET statement_timeout = 0;
11+
SET lock_timeout = 0;
12+
SET idle_in_transaction_session_timeout = 0;
13+
SET client_encoding = 'UTF8';
14+
SET standard_conforming_strings = on;
15+
SELECT pg_catalog.set_config('search_path', '', false);
16+
SET check_function_bodies = false;
17+
SET xmloption = content;
18+
SET client_min_messages = warning;
19+
SET row_security = off;
20+
21+
SET default_tablespace = '';
22+
23+
SET default_table_access_method = heap;
24+
25+
--
26+
-- TOC entry 216 (class 1259 OID 16400)
27+
-- Name: punionica; Type: TABLE; Schema: public; Owner: postgres
28+
--
29+
30+
CREATE TABLE public.punionica (
31+
id_punionice integer NOT NULL,
32+
naziv_punionice character varying(100) NOT NULL,
33+
adresa character varying(255) NOT NULL,
34+
geografska_sirina numeric(9,6),
35+
geografska_duzina numeric(9,6),
36+
vrsta_punjenja character varying(20),
37+
broj_punjaca integer,
38+
snaga_punjenja numeric(5,2),
39+
cijena_po_kwh numeric(5,2),
40+
otvorenje time without time zone,
41+
zatvaranje time without time zone,
42+
CONSTRAINT punionica_vrsta_punjenja_check CHECK (((vrsta_punjenja)::text = ANY ((ARRAY['brzo'::character varying, 'standardno'::character varying])::text[])))
43+
);
44+
45+
46+
ALTER TABLE public.punionica OWNER TO postgres;
47+
48+
--
49+
-- TOC entry 215 (class 1259 OID 16399)
50+
-- Name: punionica_id_punionice_seq; Type: SEQUENCE; Schema: public; Owner: postgres
51+
--
52+
53+
CREATE SEQUENCE public.punionica_id_punionice_seq
54+
AS integer
55+
START WITH 1
56+
INCREMENT BY 1
57+
NO MINVALUE
58+
NO MAXVALUE
59+
CACHE 1;
60+
61+
62+
ALTER SEQUENCE public.punionica_id_punionice_seq OWNER TO postgres;
63+
64+
--
65+
-- TOC entry 4800 (class 0 OID 0)
66+
-- Dependencies: 215
67+
-- Name: punionica_id_punionice_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
68+
--
69+
70+
ALTER SEQUENCE public.punionica_id_punionice_seq OWNED BY public.punionica.id_punionice;
71+
72+
73+
--
74+
-- TOC entry 218 (class 1259 OID 16408)
75+
-- Name: stanicazapunjenje; Type: TABLE; Schema: public; Owner: postgres
76+
--
77+
78+
CREATE TABLE public.stanicazapunjenje (
79+
id_stanice integer NOT NULL,
80+
id_punionice integer,
81+
tip_konektora character varying(20),
82+
snaga_stanice numeric(5,2),
83+
pruzatelj character varying(255),
84+
CONSTRAINT stanicazapunjenje_tip_konektora_check CHECK (((tip_konektora)::text = ANY ((ARRAY['CCS'::character varying, 'CHAdeMO'::character varying, 'Type 2'::character varying, 'CCS2'::character varying])::text[])))
85+
);
86+
87+
88+
ALTER TABLE public.stanicazapunjenje OWNER TO postgres;
89+
90+
--
91+
-- TOC entry 217 (class 1259 OID 16407)
92+
-- Name: stanicazapunjenje_id_stanice_seq; Type: SEQUENCE; Schema: public; Owner: postgres
93+
--
94+
95+
CREATE SEQUENCE public.stanicazapunjenje_id_stanice_seq
96+
AS integer
97+
START WITH 1
98+
INCREMENT BY 1
99+
NO MINVALUE
100+
NO MAXVALUE
101+
CACHE 1;
102+
103+
104+
ALTER SEQUENCE public.stanicazapunjenje_id_stanice_seq OWNER TO postgres;
105+
106+
--
107+
-- TOC entry 4801 (class 0 OID 0)
108+
-- Dependencies: 217
109+
-- Name: stanicazapunjenje_id_stanice_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
110+
--
111+
112+
ALTER SEQUENCE public.stanicazapunjenje_id_stanice_seq OWNED BY public.stanicazapunjenje.id_stanice;
113+
114+
115+
--
116+
-- TOC entry 4639 (class 2604 OID 16403)
117+
-- Name: punionica id_punionice; Type: DEFAULT; Schema: public; Owner: postgres
118+
--
119+
120+
ALTER TABLE ONLY public.punionica ALTER COLUMN id_punionice SET DEFAULT nextval('public.punionica_id_punionice_seq'::regclass);
121+
122+
123+
--
124+
-- TOC entry 4640 (class 2604 OID 16411)
125+
-- Name: stanicazapunjenje id_stanice; Type: DEFAULT; Schema: public; Owner: postgres
126+
--
127+
128+
ALTER TABLE ONLY public.stanicazapunjenje ALTER COLUMN id_stanice SET DEFAULT nextval('public.stanicazapunjenje_id_stanice_seq'::regclass);
129+
130+
131+
--
132+
-- TOC entry 4792 (class 0 OID 16400)
133+
-- Dependencies: 216
134+
-- Data for Name: punionica; Type: TABLE DATA; Schema: public; Owner: postgres
135+
--
136+
137+
COPY public.punionica (id_punionice, naziv_punionice, adresa, geografska_sirina, geografska_duzina, vrsta_punjenja, broj_punjaca, snaga_punjenja, cijena_po_kwh, otvorenje, zatvaranje) FROM stdin;
138+
121 Electric Vehicle Charging Station Ulica Bartula Kašića 6, 10000, Zagreb 45.812231 15.996305 standardno 4 22.00 0.43 \N \N
139+
122 Petrol Charging Station Radnička cesta 55, 10000, Zagreb 45.801092 16.008394 brzo 6 50.00 0.55 \N \N
140+
123 ELEN Charging Station Trg Stjepana Radića 1, 10000, Zagreb 45.800747 15.977965 brzo 3 50.00 1.06 \N \N
141+
124 Hrvatski Telekom Charging Station Jaruščica 23, 10000, Zagreb 45.769131 15.934288 brzo 3 60.00 \N 07:00:00 22:00:00
142+
125 Petrol Charging Station Miramarska Cesta bb, 10000, Zagreb 45.803244 15.974489 standardno 4 22.00 0.43 \N \N
143+
126 Lidl Hrvatska Charging Station Josipa Jurja Strossmayera 350, 31000, Osijek 45.568074 18.637213 standardno 1 11.00 \N 07:00:00 22:00:00
144+
127 Electric Vehicle Charging Station Istarska ul. 1, 31000, Osijek 45.560382 18.694205 brzo 3 50.00 0.78 \N \N
145+
128 Elen Charging Station Drinska ul., 31000, Osijek 45.547026 18.679725 brzo 3 50.00 0.78 \N \N
146+
129 Porsche Croatia d.o.o. Charging Station Ul. Svetog Leopolda Bogdana Mandića 22, 31000, Osijek 45.551724 18.667105 brzo 4 50.00 -1.00 \N \N
147+
130 ELEN Charging Station 31000, Tvrđa, Osijek 45.560902 18.699921 brzo 3 50.00 0.78 \N \N
148+
\.
149+
150+
151+
--
152+
-- TOC entry 4794 (class 0 OID 16408)
153+
-- Dependencies: 218
154+
-- Data for Name: stanicazapunjenje; Type: TABLE DATA; Schema: public; Owner: postgres
155+
--
156+
157+
COPY public.stanicazapunjenje (id_stanice, id_punionice, tip_konektora, snaga_stanice, pruzatelj) FROM stdin;
158+
105 121 Type 2 22.00 https://www.petrol.hr/
159+
106 121 Type 2 21.00 https://www.petrol.hr/
160+
107 121 Type 2 11.00 https://www.petrol.hr/
161+
108 122 CCS 50.00 https://www.petrol.hr/
162+
109 122 CHAdeMO 50.00 https://www.petrol.hr/
163+
110 122 Type 2 22.00 https://www.petrol.hr/
164+
111 122 Type 2 11.00 https://www.petrol.hr/
165+
112 123 CHAdeMO 50.00 https://elen.hep.hr/
166+
113 123 CCS 50.00 https://elen.hep.hr/
167+
114 123 Type 2 43.00 https://elen.hep.hr/
168+
115 124 CCS 60.00 https://www.t.ht.hr/
169+
116 124 Type 2 22.00 https://www.t.ht.hr/
170+
117 125 Type 2 22.00 https://www.petrol.hr/
171+
118 126 Type 2 11.00 https://www.lidl.hr/
172+
119 127 CHAdeMO 50.00 \N
173+
120 127 CCS 50.00 \N
174+
121 127 Type 2 43.00 \N
175+
122 128 CHAdeMO 50.00 https://elen.hep.hr/
176+
123 128 CCS 50.00 https://elen.hep.hr/
177+
124 128 Type 2 43.00 https://elen.hep.hr/
178+
125 129 CCS2 75.00 https://www.chargepoint.com/
179+
126 129 CHAdeMO 75.00 https://www.chargepoint.com/
180+
127 129 Type 2 22.00 https://www.chargepoint.com/
181+
128 130 CHAdeMO 50.00 https://elen.hep.hr/
182+
129 130 CCS 50.00 https://elen.hep.hr/
183+
130 130 Type 2 22.00 https://elen.hep.hr/
184+
\.
185+
186+
187+
--
188+
-- TOC entry 4802 (class 0 OID 0)
189+
-- Dependencies: 215
190+
-- Name: punionica_id_punionice_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
191+
--
192+
193+
SELECT pg_catalog.setval('public.punionica_id_punionice_seq', 130, true);
194+
195+
196+
--
197+
-- TOC entry 4803 (class 0 OID 0)
198+
-- Dependencies: 217
199+
-- Name: stanicazapunjenje_id_stanice_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
200+
--
201+
202+
SELECT pg_catalog.setval('public.stanicazapunjenje_id_stanice_seq', 130, true);
203+
204+
205+
--
206+
-- TOC entry 4644 (class 2606 OID 16406)
207+
-- Name: punionica punionica_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
208+
--
209+
210+
ALTER TABLE ONLY public.punionica
211+
ADD CONSTRAINT punionica_pkey PRIMARY KEY (id_punionice);
212+
213+
214+
--
215+
-- TOC entry 4646 (class 2606 OID 16414)
216+
-- Name: stanicazapunjenje stanicazapunjenje_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
217+
--
218+
219+
ALTER TABLE ONLY public.stanicazapunjenje
220+
ADD CONSTRAINT stanicazapunjenje_pkey PRIMARY KEY (id_stanice);
221+
222+
223+
--
224+
-- TOC entry 4647 (class 2606 OID 16415)
225+
-- Name: stanicazapunjenje stanicazapunjenje_id_punionice_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
226+
--
227+
228+
ALTER TABLE ONLY public.stanicazapunjenje
229+
ADD CONSTRAINT stanicazapunjenje_id_punionice_fkey FOREIGN KEY (id_punionice) REFERENCES public.punionica(id_punionice) ON DELETE CASCADE;
230+
231+
232+
-- Completed on 2024-10-26 16:44:15
233+
234+
--
235+
-- PostgreSQL database dump complete
236+
--
237+

punionice.csv

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"id_punionice","naziv_punionice","adresa","geografska_sirina","geografska_duzina","vrsta_punjenja","broj_punjaca","snaga_punjenja","cijena_po_kwh","otvorenje","zatvaranje","id_stanice","tip_konektora","snaga_stanice","pruzatelj"
2+
121,"Electric Vehicle Charging Station","Ulica Bartula Kašića 6, 10000, Zagreb","45.812231","15.996305","standardno",4,"22.00","0.43",NULL,NULL,107,"Type 2","11.00","https://www.petrol.hr/"
3+
121,"Electric Vehicle Charging Station","Ulica Bartula Kašića 6, 10000, Zagreb","45.812231","15.996305","standardno",4,"22.00","0.43",NULL,NULL,106,"Type 2","21.00","https://www.petrol.hr/"
4+
121,"Electric Vehicle Charging Station","Ulica Bartula Kašića 6, 10000, Zagreb","45.812231","15.996305","standardno",4,"22.00","0.43",NULL,NULL,105,"Type 2","22.00","https://www.petrol.hr/"
5+
122,"Petrol Charging Station","Radnička cesta 55, 10000, Zagreb","45.801092","16.008394","brzo",6,"50.00","0.55",NULL,NULL,111,"Type 2","11.00","https://www.petrol.hr/"
6+
122,"Petrol Charging Station","Radnička cesta 55, 10000, Zagreb","45.801092","16.008394","brzo",6,"50.00","0.55",NULL,NULL,110,"Type 2","22.00","https://www.petrol.hr/"
7+
122,"Petrol Charging Station","Radnička cesta 55, 10000, Zagreb","45.801092","16.008394","brzo",6,"50.00","0.55",NULL,NULL,109,"CHAdeMO","50.00","https://www.petrol.hr/"
8+
122,"Petrol Charging Station","Radnička cesta 55, 10000, Zagreb","45.801092","16.008394","brzo",6,"50.00","0.55",NULL,NULL,108,"CCS","50.00","https://www.petrol.hr/"
9+
123,"ELEN Charging Station","Trg Stjepana Radića 1, 10000, Zagreb","45.800747","15.977965","brzo",3,"50.00","1.06",NULL,NULL,114,"Type 2","43.00","https://elen.hep.hr/"
10+
123,"ELEN Charging Station","Trg Stjepana Radića 1, 10000, Zagreb","45.800747","15.977965","brzo",3,"50.00","1.06",NULL,NULL,113,"CCS","50.00","https://elen.hep.hr/"
11+
123,"ELEN Charging Station","Trg Stjepana Radića 1, 10000, Zagreb","45.800747","15.977965","brzo",3,"50.00","1.06",NULL,NULL,112,"CHAdeMO","50.00","https://elen.hep.hr/"
12+
124,"Hrvatski Telekom Charging Station","Jaruščica 23, 10000, Zagreb","45.769131","15.934288","brzo",3,"60.00",NULL,"07:00:00","22:00:00",116,"Type 2","22.00","https://www.t.ht.hr/"
13+
124,"Hrvatski Telekom Charging Station","Jaruščica 23, 10000, Zagreb","45.769131","15.934288","brzo",3,"60.00",NULL,"07:00:00","22:00:00",115,"CCS","60.00","https://www.t.ht.hr/"
14+
125,"Petrol Charging Station","Miramarska Cesta bb, 10000, Zagreb","45.803244","15.974489","standardno",4,"22.00","0.43",NULL,NULL,117,"Type 2","22.00","https://www.petrol.hr/"
15+
126,"Lidl Hrvatska Charging Station","Josipa Jurja Strossmayera 350, 31000, Osijek","45.568074","18.637213","standardno",1,"11.00",NULL,"07:00:00","22:00:00",118,"Type 2","11.00","https://www.lidl.hr/"
16+
127,"Electric Vehicle Charging Station","Istarska ul. 1, 31000, Osijek","45.560382","18.694205","brzo",3,"50.00","0.78",NULL,NULL,121,"Type 2","43.00",NULL
17+
127,"Electric Vehicle Charging Station","Istarska ul. 1, 31000, Osijek","45.560382","18.694205","brzo",3,"50.00","0.78",NULL,NULL,120,"CCS","50.00",NULL
18+
127,"Electric Vehicle Charging Station","Istarska ul. 1, 31000, Osijek","45.560382","18.694205","brzo",3,"50.00","0.78",NULL,NULL,119,"CHAdeMO","50.00",NULL
19+
128,"Elen Charging Station","Drinska ul., 31000, Osijek","45.547026","18.679725","brzo",3,"50.00","0.78",NULL,NULL,124,"Type 2","43.00","https://elen.hep.hr/"
20+
128,"Elen Charging Station","Drinska ul., 31000, Osijek","45.547026","18.679725","brzo",3,"50.00","0.78",NULL,NULL,123,"CCS","50.00","https://elen.hep.hr/"
21+
128,"Elen Charging Station","Drinska ul., 31000, Osijek","45.547026","18.679725","brzo",3,"50.00","0.78",NULL,NULL,122,"CHAdeMO","50.00","https://elen.hep.hr/"
22+
129,"Porsche Croatia d.o.o. Charging Station","Ul. Svetog Leopolda Bogdana Mandića 22, 31000, Osijek","45.551724","18.667105","brzo",4,"50.00","-1.00",NULL,NULL,127,"Type 2","22.00","https://www.chargepoint.com/"
23+
129,"Porsche Croatia d.o.o. Charging Station","Ul. Svetog Leopolda Bogdana Mandića 22, 31000, Osijek","45.551724","18.667105","brzo",4,"50.00","-1.00",NULL,NULL,126,"CHAdeMO","75.00","https://www.chargepoint.com/"
24+
129,"Porsche Croatia d.o.o. Charging Station","Ul. Svetog Leopolda Bogdana Mandića 22, 31000, Osijek","45.551724","18.667105","brzo",4,"50.00","-1.00",NULL,NULL,125,"CCS2","75.00","https://www.chargepoint.com/"
25+
130,"ELEN Charging Station","31000, Tvrđa, Osijek","45.560902","18.699921","brzo",3,"50.00","0.78",NULL,NULL,130,"Type 2","22.00","https://elen.hep.hr/"
26+
130,"ELEN Charging Station","31000, Tvrđa, Osijek","45.560902","18.699921","brzo",3,"50.00","0.78",NULL,NULL,129,"CCS","50.00","https://elen.hep.hr/"
27+
130,"ELEN Charging Station","31000, Tvrđa, Osijek","45.560902","18.699921","brzo",3,"50.00","0.78",NULL,NULL,128,"CHAdeMO","50.00","https://elen.hep.hr/"

0 commit comments

Comments
 (0)