-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackupdb.bak
201 lines (141 loc) · 3.95 KB
/
backupdb.bak
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
193
194
195
196
197
198
199
200
--
-- PostgreSQL database dump
--
-- Dumped from database version 14.5
-- Dumped by pg_dump version 14.5 (Homebrew)
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: fibonacci; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.fibonacci (
id integer NOT NULL,
number bigint NOT NULL
);
--
-- Name: TABLE fibonacci; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public.fibonacci IS 'This is a test table to demonstrate the process of request to response.';
--
-- Name: fibonacci_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE public.fibonacci ALTER COLUMN id ADD GENERATED ALWAYS AS IDENTITY (
SEQUENCE NAME public.fibonacci_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: group; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."group" (
name character varying,
location character varying,
classification character varying,
group_uid uuid DEFAULT gen_random_uuid() NOT NULL
);
--
-- Name: metric; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.metric (
metric_uid uuid DEFAULT gen_random_uuid() NOT NULL,
source_uid uuid NOT NULL,
data_type character varying NOT NULL,
units character varying,
name character varying NOT NULL,
"asc" boolean DEFAULT true
);
--
-- Name: source; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.source (
source_uid uuid DEFAULT gen_random_uuid() NOT NULL,
name character varying,
group_uid uuid NOT NULL,
tz_info character varying
);
--
-- Data for Name: fibonacci; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.fibonacci (id, number) FROM stdin;
830 0
831 1
832 1
833 2
834 3
835 5
836 8
837 13
838 21
839 34
840 55
841 89
\.
--
-- Data for Name: group; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public."group" (name, location, classification, group_uid) FROM stdin;
\.
--
-- Data for Name: metric; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.metric (metric_uid, source_uid, data_type, units, name, "asc") FROM stdin;
\.
--
-- Data for Name: source; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.source (source_uid, name, group_uid, tz_info) FROM stdin;
\.
--
-- Name: fibonacci_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--
SELECT pg_catalog.setval('public.fibonacci_id_seq', 841, true);
--
-- Name: fibonacci fibonacci_pk; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.fibonacci
ADD CONSTRAINT fibonacci_pk PRIMARY KEY (id);
--
-- Name: group group_pk; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."group"
ADD CONSTRAINT group_pk PRIMARY KEY (group_uid);
--
-- Name: metric metric_pk; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.metric
ADD CONSTRAINT metric_pk PRIMARY KEY (metric_uid);
--
-- Name: source source_pk; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.source
ADD CONSTRAINT source_pk PRIMARY KEY (source_uid);
--
-- Name: fibonacci_id_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fibonacci_id_idx ON public.fibonacci USING btree (id);
--
-- Name: metric metric_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.metric
ADD CONSTRAINT metric_fk FOREIGN KEY (source_uid) REFERENCES public.source(source_uid);
--
-- Name: source source_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.source
ADD CONSTRAINT source_fk FOREIGN KEY (group_uid) REFERENCES public."group"(group_uid);
--
-- PostgreSQL database dump complete
--