Newer
Older
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
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: children; Type: TABLE; Schema: public; Owner: gouser; Tablespace:
--
CREATE TABLE children (
id integer NOT NULL,
parent_id integer,
name character varying(60)
);
ALTER TABLE public.children OWNER TO gouser;
--
-- Name: children_id_seq; Type: SEQUENCE; Schema: public; Owner: gouser
--
CREATE SEQUENCE children_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.children_id_seq OWNER TO gouser;
--
-- Name: children_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: gouser
--
ALTER SEQUENCE children_id_seq OWNED BY children.id;
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
--
-- Name: data_types; Type: TABLE; Schema: public; Owner: gouser; Tablespace:
--
CREATE TABLE data_types (
id integer NOT NULL,
_uint integer,
_uint8 integer,
_uint16 integer,
_uint32 integer,
_uint64 integer,
_int integer,
_int8 integer,
_int16 integer,
_int32 integer,
_int64 integer,
_float32 numeric(10,6),
_float64 numeric(10,6),
_byte bit(1),
_rune bit(1),
_bool boolean,
_string text,
_date timestamp without time zone,
_bytea character varying,
_time time without time zone,
_uintptr integer
);
ALTER TABLE public.data_types OWNER TO gouser;
--
-- Name: data_types_id_seq; Type: SEQUENCE; Schema: public; Owner: gouser
--
CREATE SEQUENCE data_types_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.data_types_id_seq OWNER TO gouser;
--
-- Name: data_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: gouser
--
ALTER SEQUENCE data_types_id_seq OWNED BY data_types.id;
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
201
202
203
204
205
206
207
208
209
210
211
212
--
-- Name: people; Type: TABLE; Schema: public; Owner: gouser; Tablespace:
--
CREATE TABLE people (
id integer NOT NULL,
place_code_id integer,
name character varying(60)
);
ALTER TABLE public.people OWNER TO gouser;
--
-- Name: people_id_seq; Type: SEQUENCE; Schema: public; Owner: gouser
--
CREATE SEQUENCE people_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.people_id_seq OWNER TO gouser;
--
-- Name: people_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: gouser
--
ALTER SEQUENCE people_id_seq OWNED BY people.id;
--
-- Name: places; Type: TABLE; Schema: public; Owner: gouser; Tablespace:
--
CREATE TABLE places (
id integer NOT NULL,
code_id integer,
name character varying(60)
);
ALTER TABLE public.places OWNER TO gouser;
--
-- Name: places_id_seq; Type: SEQUENCE; Schema: public; Owner: gouser
--
CREATE SEQUENCE places_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.places_id_seq OWNER TO gouser;
--
-- Name: places_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: gouser
--
ALTER SEQUENCE places_id_seq OWNED BY places.id;
--
-- Name: visits; Type: TABLE; Schema: public; Owner: gouser; Tablespace:
--
CREATE TABLE visits (
id integer NOT NULL,
place_id integer,
person_id integer
);
ALTER TABLE public.visits OWNER TO gouser;
--
-- Name: visits_id_seq; Type: SEQUENCE; Schema: public; Owner: gouser
--
CREATE SEQUENCE visits_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.visits_id_seq OWNER TO gouser;
--
-- Name: visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: gouser
--
ALTER SEQUENCE visits_id_seq OWNED BY visits.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: gouser
--
ALTER TABLE ONLY children ALTER COLUMN id SET DEFAULT nextval('children_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: gouser
--
ALTER TABLE ONLY data_types ALTER COLUMN id SET DEFAULT nextval('data_types_id_seq'::regclass);
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: gouser
--
ALTER TABLE ONLY people ALTER COLUMN id SET DEFAULT nextval('people_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: gouser
--
ALTER TABLE ONLY places ALTER COLUMN id SET DEFAULT nextval('places_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: gouser
--
ALTER TABLE ONLY visits ALTER COLUMN id SET DEFAULT nextval('visits_id_seq'::regclass);
--
-- Name: children_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace:
--
ALTER TABLE ONLY children
ADD CONSTRAINT children_pkey PRIMARY KEY (id);
--
-- Name: data_types_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace:
--
ALTER TABLE ONLY data_types
ADD CONSTRAINT data_types_pkey PRIMARY KEY (id);
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
--
-- Name: people_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace:
--
ALTER TABLE ONLY people
ADD CONSTRAINT people_pkey PRIMARY KEY (id);
--
-- Name: places_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace:
--
ALTER TABLE ONLY places
ADD CONSTRAINT places_pkey PRIMARY KEY (id);
--
-- Name: visits_pkey; Type: CONSTRAINT; Schema: public; Owner: gouser; Tablespace:
--
ALTER TABLE ONLY visits
ADD CONSTRAINT visits_pkey PRIMARY KEY (id);
--
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- PostgreSQL database dump complete
--