-
Notifications
You must be signed in to change notification settings - Fork 670
/
dump.sql
532 lines (343 loc) · 11.2 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
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
249
250
251
252
253
254
255
256
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
--
-- PostgreSQL database dump
--
-- Dumped from database version 11.5
-- Dumped by pg_dump version 11.5
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_with_oids = false;
--
-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.ar_internal_metadata (
key character varying NOT NULL,
value character varying,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE public.ar_internal_metadata OWNER TO postgres;
--
-- Name: concurrencies; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.concurrencies (
id bigint NOT NULL,
level numeric
);
ALTER TABLE public.concurrencies OWNER TO postgres;
--
-- Name: concurrencies_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.concurrencies_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.concurrencies_id_seq OWNER TO postgres;
--
-- Name: concurrencies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.concurrencies_id_seq OWNED BY public.concurrencies.id;
--
-- Name: engines; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.engines (
id SERIAL PRIMARY KEY,
label character varying UNIQUE
);
--
-- Name: frameworks; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.frameworks (
id bigint NOT NULL,
language_id bigint,
label character varying
);
ALTER TABLE public.frameworks OWNER TO postgres;
--
-- Name: frameworks_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.frameworks_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.frameworks_id_seq OWNER TO postgres;
--
-- Name: frameworks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.frameworks_id_seq OWNED BY public.frameworks.id;
--
-- Name: keys; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.keys (
id bigint NOT NULL,
label character varying
);
ALTER TABLE public.keys OWNER TO postgres;
--
-- Name: keys_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.keys_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.keys_id_seq OWNER TO postgres;
--
-- Name: keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.keys_id_seq OWNED BY public.keys.id;
--
-- Name: languages; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.languages (
id bigint NOT NULL,
label character varying
);
ALTER TABLE public.languages OWNER TO postgres;
--
-- Name: languages_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.languages_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.languages_id_seq OWNER TO postgres;
--
-- Name: languages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.languages_id_seq OWNED BY public.languages.id;
--
-- Name: metrics; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.metrics (
framework_id bigint,
value_id bigint,
concurrency_id bigint,
engine_id bigint
);
ALTER TABLE public.metrics OWNER TO postgres;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.schema_migrations (
version character varying NOT NULL
);
ALTER TABLE public.schema_migrations OWNER TO postgres;
--
-- Name: values; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public."values" (
id bigint NOT NULL,
value double precision,
key_id bigint
);
ALTER TABLE public."values" OWNER TO postgres;
--
-- Name: values_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.values_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.values_id_seq OWNER TO postgres;
--
-- Name: values_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.values_id_seq OWNED BY public."values".id;
--
-- Name: writable; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.writable (
language_id bigint,
framework_id bigint,
engine_id bigint
);
ALTER TABLE public.writable OWNER TO postgres;
--
-- Name: concurrencies id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.concurrencies ALTER COLUMN id SET DEFAULT nextval('public.concurrencies_id_seq'::regclass);
--
-- Name: frameworks id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.frameworks ALTER COLUMN id SET DEFAULT nextval('public.frameworks_id_seq'::regclass);
--
-- Name: keys id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.keys ALTER COLUMN id SET DEFAULT nextval('public.keys_id_seq'::regclass);
--
-- Name: languages id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.languages ALTER COLUMN id SET DEFAULT nextval('public.languages_id_seq'::regclass);
--
-- Name: values id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public."values" ALTER COLUMN id SET DEFAULT nextval('public.values_id_seq'::regclass);
--
-- Data for Name: ar_internal_metadata; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.ar_internal_metadata (key, value, created_at, updated_at) FROM stdin;
environment default_env 2020-02-09 14:44:04.669806 2020-02-09 14:44:04.669806
\.
--
-- Data for Name: concurrencies; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.concurrencies (id, level) FROM stdin;
\.
--
-- Data for Name: frameworks; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.frameworks (id, language_id, label) FROM stdin;
\.
--
-- Data for Name: keys; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.keys (id, label) FROM stdin;
\.
--
-- Data for Name: languages; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.languages (id, label) FROM stdin;
\.
--
-- Data for Name: metrics; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.metrics (framework_id, value_id, concurrency_id) FROM stdin;
\.
--
-- Data for Name: schema_migrations; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.schema_migrations (version) FROM stdin;
20191014111447
20200209161533
\.
--
-- Data for Name: values; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public."values" (id, value, key_id) FROM stdin;
\.
--
-- Data for Name: writable; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.writable (language_id, framework_id) FROM stdin;
\.
--
-- Name: concurrencies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.concurrencies_id_seq', 1, false);
--
-- Name: frameworks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.frameworks_id_seq', 1, false);
--
-- Name: keys_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.keys_id_seq', 1, false);
--
-- Name: languages_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.languages_id_seq', 1, false);
--
-- Name: values_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.values_id_seq', 1, false);
--
-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.ar_internal_metadata
ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
--
-- Name: concurrencies concurrencies_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.concurrencies
ADD CONSTRAINT concurrencies_pkey PRIMARY KEY (id);
--
-- Name: frameworks frameworks_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.frameworks
ADD CONSTRAINT frameworks_pkey PRIMARY KEY (id);
--
-- Name: keys keys_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.keys
ADD CONSTRAINT keys_pkey PRIMARY KEY (id);
--
-- Name: languages languages_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.languages
ADD CONSTRAINT languages_pkey PRIMARY KEY (id);
--
-- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.schema_migrations
ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);
--
-- Name: values values_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public."values"
ADD CONSTRAINT values_pkey PRIMARY KEY (id);
--
-- Name: index_concurrencies_on_level; Type: INDEX; Schema: public; Owner: postgres
--
CREATE UNIQUE INDEX index_concurrencies_on_level ON public.concurrencies USING btree (level);
--
-- Name: index_frameworks_on_language_id; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX index_frameworks_on_language_id ON public.frameworks USING btree (language_id);
--
-- Name: index_frameworks_on_language_id_and_label; Type: INDEX; Schema: public; Owner: postgres
--
CREATE UNIQUE INDEX index_frameworks_on_language_id_and_label ON public.frameworks USING btree (language_id, label);
--
-- Name: index_keys_on_label; Type: INDEX; Schema: public; Owner: postgres
--
CREATE UNIQUE INDEX index_keys_on_label ON public.keys USING btree (label);
--
-- Name: index_languages_on_label; Type: INDEX; Schema: public; Owner: postgres
--
CREATE UNIQUE INDEX index_languages_on_label ON public.languages USING btree (label);
--
-- Name: index_metrics_on_concurrency_id; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX index_metrics_on_concurrency_id ON public.metrics USING btree (concurrency_id);
--
-- Name: index_metrics_on_framework_id; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX index_metrics_on_framework_id ON public.metrics USING btree (framework_id);
--
-- Name: index_metrics_on_value_id; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX index_metrics_on_value_id ON public.metrics USING btree (value_id);
CREATE INDEX index_metrics_on_engine_id ON public.metrics USING btree (engine_id);
--
-- Name: index_values_on_key_id; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX index_values_on_key_id ON public."values" USING btree (key_id);
--
-- Name: index_writable_on_framework_id; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX index_writable_on_framework_id ON public.writable USING btree (framework_id);
--
-- Name: index_writable_on_language_id; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX index_writable_on_language_id ON public.writable USING btree (language_id);
--
-- PostgreSQL database dump complete
--