-
Notifications
You must be signed in to change notification settings - Fork 0
/
dump.sql
193 lines (138 loc) · 4.54 KB
/
dump.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
--
-- PostgreSQL database dump
--
-- Dumped from database version 13.14 (Debian 13.14-1.pgdg120+2)
-- Dumped by pg_dump version 13.14 (Debian 13.14-1.pgdg120+2)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: dailyclimate; Type: TABLE; Schema: public; Owner: airflow
--
CREATE TABLE public.dailyclimate (
id integer NOT NULL,
idloc integer NOT NULL,
tempc numeric(5,2),
windkph numeric(5,2),
winddeg integer,
pressmb numeric(7,2),
hum integer,
uv numeric(3,1)
);
ALTER TABLE public.dailyclimate OWNER TO airflow;
--
-- Name: dailyclimate_id_seq; Type: SEQUENCE; Schema: public; Owner: airflow
--
CREATE SEQUENCE public.dailyclimate_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.dailyclimate_id_seq OWNER TO airflow;
--
-- Name: dailyclimate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: airflow
--
ALTER SEQUENCE public.dailyclimate_id_seq OWNED BY public.dailyclimate.id;
--
-- Name: stationlocation; Type: TABLE; Schema: public; Owner: airflow
--
CREATE TABLE public.stationlocation (
id integer NOT NULL,
lat numeric(9,6) NOT NULL,
long numeric(9,6) NOT NULL,
name character varying(255)
);
ALTER TABLE public.stationlocation OWNER TO airflow;
--
-- Name: stationlocation_id_seq; Type: SEQUENCE; Schema: public; Owner: airflow
--
CREATE SEQUENCE public.stationlocation_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.stationlocation_id_seq OWNER TO airflow;
--
-- Name: stationlocation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: airflow
--
ALTER SEQUENCE public.stationlocation_id_seq OWNED BY public.stationlocation.id;
--
-- Name: dailyclimate id; Type: DEFAULT; Schema: public; Owner: airflow
--
ALTER TABLE ONLY public.dailyclimate ALTER COLUMN id SET DEFAULT nextval('public.dailyclimate_id_seq'::regclass);
--
-- Name: stationlocation id; Type: DEFAULT; Schema: public; Owner: airflow
--
ALTER TABLE ONLY public.stationlocation ALTER COLUMN id SET DEFAULT nextval('public.stationlocation_id_seq'::regclass);
--
-- Data for Name: dailyclimate; Type: TABLE DATA; Schema: public; Owner: airflow
--
COPY public.dailyclimate (id, idloc, tempc, windkph, winddeg, pressmb, hum, uv) FROM stdin;
\.
--
-- Data for Name: stationlocation; Type: TABLE DATA; Schema: public; Owner: airflow
--
COPY public.stationlocation (id, lat, long, name) FROM stdin;
1 1.266557 117.819003 Station 1
2 1.252922 117.814700 Station 2
3 1.252656 117.828769 Station 3
4 1.253043 117.846616 Station 4
5 1.238490 117.846616 Station 5
6 1.238490 117.857027 Station 6
7 1.232453 117.864195 Station 7
8 1.227730 117.873833 Station 8
9 1.213578 117.845952 Station 9
10 1.242022 117.870190 Station 10
11 1.258019 117.867200 Station 11
12 1.267978 117.881793 Station 12
13 1.259847 117.890257 Station 13
14 1.242930 117.898458 Station 14
15 1.231917 117.899757 Station 15
16 1.278993 117.879321 Station 16
17 1.272297 117.904461 Station 17
18 1.284355 117.918273 Station 18
19 1.266913 117.928167 Station 19
20 1.246721 117.932198 Station 20
21 1.249611 117.916307 Station 21
22 1.258661 117.907452 Station 22
23 1.211997 117.870832 Station 23
\.
--
-- Name: dailyclimate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: airflow
--
SELECT pg_catalog.setval('public.dailyclimate_id_seq', 1, false);
--
-- Name: stationlocation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: airflow
--
SELECT pg_catalog.setval('public.stationlocation_id_seq', 23, true);
--
-- Name: dailyclimate dailyclimate_pkey; Type: CONSTRAINT; Schema: public; Owner: airflow
--
ALTER TABLE ONLY public.dailyclimate
ADD CONSTRAINT dailyclimate_pkey PRIMARY KEY (id);
--
-- Name: stationlocation stationlocation_pkey; Type: CONSTRAINT; Schema: public; Owner: airflow
--
ALTER TABLE ONLY public.stationlocation
ADD CONSTRAINT stationlocation_pkey PRIMARY KEY (id);
--
-- Name: dailyclimate dailyclimate_idloc_fkey; Type: FK CONSTRAINT; Schema: public; Owner: airflow
--
ALTER TABLE ONLY public.dailyclimate
ADD CONSTRAINT dailyclimate_idloc_fkey FOREIGN KEY (idloc) REFERENCES public.stationlocation(id);
--
-- PostgreSQL database dump complete
--