-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb_dump_schema.sql
793 lines (538 loc) · 16.8 KB
/
db_dump_schema.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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.2
-- Dumped by pg_dump version 9.6.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;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: albums; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE albums (
id integer NOT NULL,
name character varying NOT NULL,
sort_order character varying
);
ALTER TABLE albums OWNER TO nuts;
--
-- Name: albums_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE albums_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE albums_id_seq OWNER TO nuts;
--
-- Name: albums_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE albums_id_seq OWNED BY albums.id;
--
-- Name: articles; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE articles (
id integer NOT NULL,
sort_order character varying DEFAULT (now())::character varying NOT NULL,
keywords character varying,
title character varying,
article text NOT NULL,
description character varying NOT NULL,
short_text character varying NOT NULL
);
ALTER TABLE articles OWNER TO nuts;
--
-- Name: articles_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE articles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE articles_id_seq OWNER TO nuts;
--
-- Name: articles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE articles_id_seq OWNED BY articles.id;
--
-- Name: auth_tokens; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE auth_tokens (
id character varying NOT NULL,
user_id character varying NOT NULL,
expiry character varying
);
ALTER TABLE auth_tokens OWNER TO nuts;
--
-- Name: binding_image_album; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE binding_image_album (
image_name character varying,
album_id integer
);
ALTER TABLE binding_image_album OWNER TO nuts;
--
-- Name: categories; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE categories (
id integer NOT NULL,
name character varying,
sort_order character varying DEFAULT to_char(now(), 'YYYY-MM-DD HH:SS:MS'::text)
);
ALTER TABLE categories OWNER TO nuts;
--
-- Name: categories_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE categories_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE categories_id_seq OWNER TO nuts;
--
-- Name: categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE categories_id_seq OWNED BY categories.id;
--
-- Name: comments; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE comments (
id integer NOT NULL,
article_id bigint,
user_id character varying,
text character varying NOT NULL,
added timestamp without time zone DEFAULT (now())::timestamp without time zone
);
ALTER TABLE comments OWNER TO nuts;
--
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE comments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE comments_id_seq OWNER TO nuts;
--
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE comments_id_seq OWNED BY comments.id;
--
-- Name: users; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE users (
user_id character varying NOT NULL,
first_name character varying,
last_name character varying,
full_name character varying,
email character varying,
avatar_url character varying,
activated boolean DEFAULT false,
role character varying
);
ALTER TABLE users OWNER TO nuts;
--
-- Name: comments_info; Type: VIEW; Schema: public; Owner: nuts
--
CREATE VIEW comments_info AS
SELECT c.id,
c.article_id,
c.user_id,
c.text,
c.added,
u.full_name,
u.email,
a.title
FROM ((comments c
LEFT JOIN users u ON (((c.user_id)::text = (u.user_id)::text)))
LEFT JOIN articles a ON ((c.article_id = a.id)));
ALTER TABLE comments_info OWNER TO nuts;
--
-- Name: goods; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE goods (
id integer NOT NULL,
category integer,
title character varying NOT NULL,
description character varying NOT NULL,
qnt integer DEFAULT 0 NOT NULL,
price numeric(19,2) DEFAULT 0 NOT NULL,
sort_order character varying DEFAULT to_char(now(), 'YYYY-MM-DD HH:SS:MS'::text),
image character varying,
changed timestamp without time zone DEFAULT (now())::timestamp without time zone
);
ALTER TABLE goods OWNER TO nuts;
--
-- Name: goods_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE goods_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE goods_id_seq OWNER TO nuts;
--
-- Name: goods_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE goods_id_seq OWNED BY goods.id;
--
-- Name: goods_view; Type: VIEW; Schema: public; Owner: nuts
--
CREATE VIEW goods_view AS
SELECT g.id,
c.name AS category,
c.id AS category_id,
g.title,
g.description,
g.qnt,
g.price,
c.sort_order AS category_sort_order,
g.sort_order,
g.image,
g.changed
FROM (goods g
LEFT JOIN categories c ON ((c.id = g.category)))
ORDER BY c.sort_order, g.sort_order;
ALTER TABLE goods_view OWNER TO nuts;
--
-- Name: image_bytes; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE image_bytes (
image_name character varying NOT NULL,
bytes bytea NOT NULL,
created timestamp without time zone DEFAULT (now())::timestamp without time zone
);
ALTER TABLE image_bytes OWNER TO nuts;
--
-- Name: images; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE images (
name character varying NOT NULL,
content character varying NOT NULL,
albums character varying,
created timestamp without time zone DEFAULT (now())::timestamp without time zone
);
ALTER TABLE images OWNER TO nuts;
--
-- Name: image_info; Type: VIEW; Schema: public; Owner: nuts
--
CREATE VIEW image_info AS
SELECT i.name,
i.content,
string_agg(((((a.id)::character varying)::text || ' '::text) || (a.name)::text), '
'::text) AS categories
FROM ((images i
LEFT JOIN binding_image_album b ON (((b.image_name)::text = (i.name)::text)))
LEFT JOIN albums a ON ((a.id = b.album_id)))
GROUP BY i.name, i.content;
ALTER TABLE image_info OWNER TO nuts;
--
-- Name: image_thumbnail_bytes; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE image_thumbnail_bytes (
image_name character varying NOT NULL,
bytes bytea NOT NULL,
created timestamp without time zone DEFAULT (now())::timestamp without time zone
);
ALTER TABLE image_thumbnail_bytes OWNER TO nuts;
--
-- Name: login_info; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE login_info (
id integer NOT NULL,
provider_id character varying NOT NULL,
provider_key character varying NOT NULL
);
ALTER TABLE login_info OWNER TO nuts;
--
-- Name: login_info_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE login_info_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE login_info_id_seq OWNER TO nuts;
--
-- Name: login_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE login_info_id_seq OWNED BY login_info.id;
--
-- Name: oauth1_info; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE oauth1_info (
id integer NOT NULL,
token character varying NOT NULL,
secret character varying NOT NULL,
login_info_id integer NOT NULL
);
ALTER TABLE oauth1_info OWNER TO nuts;
--
-- Name: oauth1_info_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE oauth1_info_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE oauth1_info_id_seq OWNER TO nuts;
--
-- Name: oauth1_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE oauth1_info_id_seq OWNED BY oauth1_info.id;
--
-- Name: oauth2_info; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE oauth2_info (
id integer NOT NULL,
access_token character varying NOT NULL,
token_type character varying,
expires_in integer,
refresh_token character varying,
login_info_id integer NOT NULL
);
ALTER TABLE oauth2_info OWNER TO nuts;
--
-- Name: oauth2_info_id_seq; Type: SEQUENCE; Schema: public; Owner: nuts
--
CREATE SEQUENCE oauth2_info_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE oauth2_info_id_seq OWNER TO nuts;
--
-- Name: oauth2_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: nuts
--
ALTER SEQUENCE oauth2_info_id_seq OWNED BY oauth2_info.id;
--
-- Name: pages; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE pages (
url character varying NOT NULL,
title character varying NOT NULL,
html text NOT NULL,
keywords character varying NOT NULL,
description character varying NOT NULL
);
ALTER TABLE pages OWNER TO nuts;
--
-- Name: password_info; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE password_info (
hasher character varying NOT NULL,
password character varying NOT NULL,
salt character varying,
login_info_id integer NOT NULL
);
ALTER TABLE password_info OWNER TO nuts;
--
-- Name: play_evolutions; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE play_evolutions (
id integer NOT NULL,
hash character varying(255) NOT NULL,
applied_at timestamp without time zone NOT NULL,
apply_script text,
revert_script text,
state character varying(255),
last_problem text
);
ALTER TABLE play_evolutions OWNER TO nuts;
--
-- Name: user_login_info; Type: TABLE; Schema: public; Owner: nuts
--
CREATE TABLE user_login_info (
user_id character varying NOT NULL,
login_info_id integer NOT NULL
);
ALTER TABLE user_login_info OWNER TO nuts;
--
-- Name: albums id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY albums ALTER COLUMN id SET DEFAULT nextval('albums_id_seq'::regclass);
--
-- Name: articles id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY articles ALTER COLUMN id SET DEFAULT nextval('articles_id_seq'::regclass);
--
-- Name: categories id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY categories ALTER COLUMN id SET DEFAULT nextval('categories_id_seq'::regclass);
--
-- Name: comments id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY comments ALTER COLUMN id SET DEFAULT nextval('comments_id_seq'::regclass);
--
-- Name: goods id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY goods ALTER COLUMN id SET DEFAULT nextval('goods_id_seq'::regclass);
--
-- Name: login_info id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY login_info ALTER COLUMN id SET DEFAULT nextval('login_info_id_seq'::regclass);
--
-- Name: oauth1_info id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY oauth1_info ALTER COLUMN id SET DEFAULT nextval('oauth1_info_id_seq'::regclass);
--
-- Name: oauth2_info id; Type: DEFAULT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY oauth2_info ALTER COLUMN id SET DEFAULT nextval('oauth2_info_id_seq'::regclass);
--
-- Name: albums albums_name_key; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY albums
ADD CONSTRAINT albums_name_key UNIQUE (name);
--
-- Name: albums albums_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY albums
ADD CONSTRAINT albums_pkey PRIMARY KEY (id);
--
-- Name: articles articles_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY articles
ADD CONSTRAINT articles_pkey PRIMARY KEY (id);
--
-- Name: auth_tokens auth_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY auth_tokens
ADD CONSTRAINT auth_tokens_pkey PRIMARY KEY (id);
--
-- Name: binding_image_album binding_image_album_unique; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY binding_image_album
ADD CONSTRAINT binding_image_album_unique UNIQUE (image_name, album_id);
--
-- Name: categories categories_name_key; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY categories
ADD CONSTRAINT categories_name_key UNIQUE (name);
--
-- Name: categories categories_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY categories
ADD CONSTRAINT categories_pkey PRIMARY KEY (id);
--
-- Name: comments comments_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY comments
ADD CONSTRAINT comments_pkey PRIMARY KEY (id);
--
-- Name: goods goods_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY goods
ADD CONSTRAINT goods_pkey PRIMARY KEY (id);
--
-- Name: image_bytes image_bytes_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY image_bytes
ADD CONSTRAINT image_bytes_pkey PRIMARY KEY (image_name);
--
-- Name: image_thumbnail_bytes image_thumbnail_bytes_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY image_thumbnail_bytes
ADD CONSTRAINT image_thumbnail_bytes_pkey PRIMARY KEY (image_name);
--
-- Name: images images_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY images
ADD CONSTRAINT images_pkey PRIMARY KEY (name);
--
-- Name: login_info login_info_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY login_info
ADD CONSTRAINT login_info_pkey PRIMARY KEY (id);
--
-- Name: oauth1_info oauth1_info_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY oauth1_info
ADD CONSTRAINT oauth1_info_pkey PRIMARY KEY (id);
--
-- Name: oauth2_info oauth2_info_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY oauth2_info
ADD CONSTRAINT oauth2_info_pkey PRIMARY KEY (id);
--
-- Name: pages pages_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY pages
ADD CONSTRAINT pages_pkey PRIMARY KEY (url);
--
-- Name: play_evolutions play_evolutions_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY play_evolutions
ADD CONSTRAINT play_evolutions_pkey PRIMARY KEY (id);
--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY users
ADD CONSTRAINT users_pkey PRIMARY KEY (user_id);
--
-- Name: binding_image_album binding_image_album_album_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY binding_image_album
ADD CONSTRAINT binding_image_album_album_id_fkey FOREIGN KEY (album_id) REFERENCES albums(id) ON DELETE CASCADE;
--
-- Name: binding_image_album binding_image_album_image_name_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY binding_image_album
ADD CONSTRAINT binding_image_album_image_name_fkey FOREIGN KEY (image_name) REFERENCES images(name) ON DELETE CASCADE;
--
-- Name: comments comments_article_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY comments
ADD CONSTRAINT comments_article_id_fkey FOREIGN KEY (article_id) REFERENCES articles(id);
--
-- Name: comments comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY comments
ADD CONSTRAINT comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES users(user_id);
--
-- Name: goods goods_category_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY goods
ADD CONSTRAINT goods_category_fkey FOREIGN KEY (category) REFERENCES categories(id);
--
-- Name: goods goods_image_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY goods
ADD CONSTRAINT goods_image_fkey FOREIGN KEY (image) REFERENCES images(name);
--
-- Name: image_bytes image_bytes_image_name_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY image_bytes
ADD CONSTRAINT image_bytes_image_name_fkey FOREIGN KEY (image_name) REFERENCES images(name) ON DELETE CASCADE;
--
-- Name: image_thumbnail_bytes image_thumbnail_bytes_image_name_fkey; Type: FK CONSTRAINT; Schema: public; Owner: nuts
--
ALTER TABLE ONLY image_thumbnail_bytes
ADD CONSTRAINT image_thumbnail_bytes_image_name_fkey FOREIGN KEY (image_name) REFERENCES images(name) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
--