-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.sql
2551 lines (1682 loc) · 63.5 KB
/
database.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
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Dumped database to: /tmp/database-dump.sql
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- 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: activity; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE activity (
id text NOT NULL,
"timestamp" timestamp without time zone,
user_id text,
object_id text,
revision_id text,
activity_type text,
data text
);
ALTER TABLE public.activity OWNER TO ckan;
--
-- Name: activity_detail; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE activity_detail (
id text NOT NULL,
activity_id text,
object_id text,
object_type text,
activity_type text,
data text
);
ALTER TABLE public.activity_detail OWNER TO ckan;
--
-- Name: authorization_group; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE authorization_group (
id text NOT NULL,
name text,
created timestamp without time zone
);
ALTER TABLE public.authorization_group OWNER TO ckan;
--
-- Name: authorization_group_user; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE authorization_group_user (
authorization_group_id text NOT NULL,
user_id text NOT NULL,
id text NOT NULL
);
ALTER TABLE public.authorization_group_user OWNER TO ckan;
--
-- Name: dashboard; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE dashboard (
user_id text NOT NULL,
activity_stream_last_viewed timestamp without time zone NOT NULL,
email_last_sent timestamp without time zone DEFAULT ('now'::text)::timestamp without time zone NOT NULL
);
ALTER TABLE public.dashboard OWNER TO ckan;
--
-- Name: group; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE "group" (
id text NOT NULL,
name text NOT NULL,
title text,
description text,
created timestamp without time zone,
state text,
revision_id text,
type text NOT NULL,
approval_status text,
image_url text,
is_organization boolean DEFAULT false
);
ALTER TABLE public."group" OWNER TO ckan;
--
-- Name: group_extra; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE group_extra (
id text NOT NULL,
group_id text,
key text,
value text,
state text,
revision_id text
);
ALTER TABLE public.group_extra OWNER TO ckan;
--
-- Name: group_extra_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE group_extra_revision (
id text NOT NULL,
group_id text,
key text,
value text,
state text,
revision_id text NOT NULL,
continuity_id text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean
);
ALTER TABLE public.group_extra_revision OWNER TO ckan;
--
-- Name: group_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE group_revision (
id text NOT NULL,
name text NOT NULL,
title text,
description text,
created timestamp without time zone,
state text,
revision_id text NOT NULL,
continuity_id text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean,
type text NOT NULL,
approval_status text,
image_url text,
is_organization boolean DEFAULT false
);
ALTER TABLE public.group_revision OWNER TO ckan;
--
-- Name: member; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE member (
id text NOT NULL,
table_id text NOT NULL,
group_id text,
state text,
revision_id text,
table_name text NOT NULL,
capacity text NOT NULL
);
ALTER TABLE public.member OWNER TO ckan;
--
-- Name: member_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE member_revision (
id text NOT NULL,
table_id text NOT NULL,
group_id text,
state text,
revision_id text NOT NULL,
continuity_id text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean,
table_name text NOT NULL,
capacity text NOT NULL
);
ALTER TABLE public.member_revision OWNER TO ckan;
--
-- Name: migrate_version; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE migrate_version (
repository_id character varying(250) NOT NULL,
repository_path text,
version integer
);
ALTER TABLE public.migrate_version OWNER TO ckan;
--
-- Name: package; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package (
id text NOT NULL,
name character varying(100) NOT NULL,
title text,
version character varying(100),
url text,
notes text,
license_id text,
revision_id text,
author text,
author_email text,
maintainer text,
maintainer_email text,
state text,
type text,
owner_org text,
private boolean DEFAULT false,
metadata_modified timestamp without time zone,
creator_user_id text
);
ALTER TABLE public.package OWNER TO ckan;
--
-- Name: package_extra; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package_extra (
id text NOT NULL,
package_id text,
key text,
value text,
revision_id text,
state text
);
ALTER TABLE public.package_extra OWNER TO ckan;
--
-- Name: package_extra_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package_extra_revision (
id text NOT NULL,
package_id text,
key text,
value text,
revision_id text NOT NULL,
continuity_id text,
state text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean
);
ALTER TABLE public.package_extra_revision OWNER TO ckan;
--
-- Name: package_relationship; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package_relationship (
id text NOT NULL,
subject_package_id text,
object_package_id text,
type text,
comment text,
revision_id text,
state text
);
ALTER TABLE public.package_relationship OWNER TO ckan;
--
-- Name: package_relationship_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package_relationship_revision (
id text NOT NULL,
subject_package_id text,
object_package_id text,
type text,
comment text,
revision_id text NOT NULL,
continuity_id text,
state text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean
);
ALTER TABLE public.package_relationship_revision OWNER TO ckan;
--
-- Name: package_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package_revision (
id text NOT NULL,
name character varying(100) NOT NULL,
title text,
version character varying(100),
url text,
notes text,
license_id text,
revision_id text NOT NULL,
continuity_id text,
author text,
author_email text,
maintainer text,
maintainer_email text,
state text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean,
type text,
owner_org text,
private boolean DEFAULT false,
metadata_modified timestamp without time zone,
creator_user_id text
);
ALTER TABLE public.package_revision OWNER TO ckan;
--
-- Name: package_tag; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package_tag (
id text NOT NULL,
package_id text,
tag_id text,
revision_id text,
state text
);
ALTER TABLE public.package_tag OWNER TO ckan;
--
-- Name: package_tag_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE package_tag_revision (
id text NOT NULL,
package_id text,
tag_id text,
revision_id text NOT NULL,
continuity_id text,
state text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean
);
ALTER TABLE public.package_tag_revision OWNER TO ckan;
--
-- Name: rating; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE rating (
id text NOT NULL,
user_id text,
user_ip_address text,
package_id text,
rating double precision,
created timestamp without time zone
);
ALTER TABLE public.rating OWNER TO ckan;
--
-- Name: related; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE related (
id text NOT NULL,
type text NOT NULL,
title text,
description text,
image_url text,
url text,
created timestamp without time zone,
owner_id text,
view_count integer DEFAULT 0 NOT NULL,
featured integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.related OWNER TO ckan;
--
-- Name: related_dataset; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE related_dataset (
id text NOT NULL,
dataset_id text NOT NULL,
related_id text NOT NULL,
status text
);
ALTER TABLE public.related_dataset OWNER TO ckan;
--
-- Name: resource; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE resource (
id text NOT NULL,
url text NOT NULL,
format text,
description text,
"position" integer,
revision_id text,
hash text,
state text,
extras text,
name text,
resource_type text,
mimetype text,
mimetype_inner text,
size bigint,
last_modified timestamp without time zone,
cache_url text,
cache_last_updated timestamp without time zone,
webstore_url text,
webstore_last_updated timestamp without time zone,
created timestamp without time zone,
url_type text,
package_id text DEFAULT ''::text NOT NULL
);
ALTER TABLE public.resource OWNER TO ckan;
--
-- Name: resource_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE resource_revision (
id text NOT NULL,
url text NOT NULL,
format text,
description text,
"position" integer,
revision_id text NOT NULL,
continuity_id text,
hash text,
state text,
extras text,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean,
name text,
resource_type text,
mimetype text,
mimetype_inner text,
size bigint,
last_modified timestamp without time zone,
cache_url text,
cache_last_updated timestamp without time zone,
webstore_url text,
webstore_last_updated timestamp without time zone,
created timestamp without time zone,
url_type text,
package_id text DEFAULT ''::text NOT NULL
);
ALTER TABLE public.resource_revision OWNER TO ckan;
--
-- Name: resource_view; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE resource_view (
id text NOT NULL,
resource_id text,
title text,
description text,
view_type text NOT NULL,
"order" integer NOT NULL,
config text
);
ALTER TABLE public.resource_view OWNER TO ckan;
--
-- Name: revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE revision (
id text NOT NULL,
"timestamp" timestamp without time zone,
author character varying(200),
message text,
state text,
approved_timestamp timestamp without time zone
);
ALTER TABLE public.revision OWNER TO ckan;
--
-- Name: system_info; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE system_info (
id integer NOT NULL,
key character varying(100) NOT NULL,
value text,
revision_id text,
state text DEFAULT 'active'::text NOT NULL
);
ALTER TABLE public.system_info OWNER TO ckan;
--
-- Name: system_info_id_seq; Type: SEQUENCE; Schema: public; Owner: ckan
--
CREATE SEQUENCE system_info_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.system_info_id_seq OWNER TO ckan;
--
-- Name: system_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ckan
--
ALTER SEQUENCE system_info_id_seq OWNED BY system_info.id;
--
-- Name: system_info_revision; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE system_info_revision (
id integer NOT NULL,
key character varying(100) NOT NULL,
value text,
revision_id text NOT NULL,
continuity_id integer,
state text DEFAULT 'active'::text NOT NULL,
expired_id text,
revision_timestamp timestamp without time zone,
expired_timestamp timestamp without time zone,
current boolean
);
ALTER TABLE public.system_info_revision OWNER TO ckan;
--
-- Name: system_info_revision_id_seq; Type: SEQUENCE; Schema: public; Owner: ckan
--
CREATE SEQUENCE system_info_revision_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.system_info_revision_id_seq OWNER TO ckan;
--
-- Name: system_info_revision_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ckan
--
ALTER SEQUENCE system_info_revision_id_seq OWNED BY system_info_revision.id;
--
-- Name: tag; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE tag (
id text NOT NULL,
name character varying(100) NOT NULL,
vocabulary_id character varying(100)
);
ALTER TABLE public.tag OWNER TO ckan;
--
-- Name: task_status; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE task_status (
id text NOT NULL,
entity_id text NOT NULL,
entity_type text NOT NULL,
task_type text NOT NULL,
key text NOT NULL,
value text NOT NULL,
state text,
error text,
last_updated timestamp without time zone
);
ALTER TABLE public.task_status OWNER TO ckan;
--
-- Name: term_translation; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE term_translation (
term text NOT NULL,
term_translation text NOT NULL,
lang_code text NOT NULL
);
ALTER TABLE public.term_translation OWNER TO ckan;
--
-- Name: tracking_raw; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE tracking_raw (
user_key character varying(100) NOT NULL,
url text NOT NULL,
tracking_type character varying(10) NOT NULL,
access_timestamp timestamp without time zone DEFAULT now()
);
ALTER TABLE public.tracking_raw OWNER TO ckan;
--
-- Name: tracking_summary; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE tracking_summary (
url text NOT NULL,
package_id text,
tracking_type character varying(10) NOT NULL,
count integer NOT NULL,
running_total integer DEFAULT 0 NOT NULL,
recent_views integer DEFAULT 0 NOT NULL,
tracking_date date
);
ALTER TABLE public.tracking_summary OWNER TO ckan;
--
-- Name: user; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE "user" (
id text NOT NULL,
name text NOT NULL,
apikey text,
created timestamp without time zone,
about text,
openid text,
password text,
fullname text,
email text,
reset_key text,
sysadmin boolean DEFAULT false,
activity_streams_email_notifications boolean DEFAULT false,
state text DEFAULT 'active'::text NOT NULL
);
ALTER TABLE public."user" OWNER TO ckan;
--
-- Name: user_following_dataset; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE user_following_dataset (
follower_id text NOT NULL,
object_id text NOT NULL,
datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.user_following_dataset OWNER TO ckan;
--
-- Name: user_following_group; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE user_following_group (
follower_id text NOT NULL,
object_id text NOT NULL,
datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.user_following_group OWNER TO ckan;
--
-- Name: user_following_user; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE user_following_user (
follower_id text NOT NULL,
object_id text NOT NULL,
datetime timestamp without time zone NOT NULL
);
ALTER TABLE public.user_following_user OWNER TO ckan;
--
-- Name: vocabulary; Type: TABLE; Schema: public; Owner: ckan; Tablespace:
--
CREATE TABLE vocabulary (
id text NOT NULL,
name character varying(100) NOT NULL
);
ALTER TABLE public.vocabulary OWNER TO ckan;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ckan
--
ALTER TABLE ONLY system_info ALTER COLUMN id SET DEFAULT nextval('system_info_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ckan
--
ALTER TABLE ONLY system_info_revision ALTER COLUMN id SET DEFAULT nextval('system_info_revision_id_seq'::regclass);
--
-- Data for Name: activity; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY activity (id, "timestamp", user_id, object_id, revision_id, activity_type, data) FROM stdin;
41e5d616-2503-4dc8-8f80-f5d27224b68f 2017-04-05 22:33:57.140628 e70eeae8-d355-426f-ad47-6e1571184ec6 e70eeae8-d355-426f-ad47-6e1571184ec6 \N new user \N
\.
--
-- Data for Name: activity_detail; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY activity_detail (id, activity_id, object_id, object_type, activity_type, data) FROM stdin;
\.
--
-- Data for Name: authorization_group; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY authorization_group (id, name, created) FROM stdin;
\.
--
-- Data for Name: authorization_group_user; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY authorization_group_user (authorization_group_id, user_id, id) FROM stdin;
\.
--
-- Data for Name: dashboard; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY dashboard (user_id, activity_stream_last_viewed, email_last_sent) FROM stdin;
e70eeae8-d355-426f-ad47-6e1571184ec6 2017-04-05 22:33:58.801046 2017-04-05 22:33:58.801061
\.
--
-- Data for Name: group; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY "group" (id, name, title, description, created, state, revision_id, type, approval_status, image_url, is_organization) FROM stdin;
\.
--
-- Data for Name: group_extra; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY group_extra (id, group_id, key, value, state, revision_id) FROM stdin;
\.
--
-- Data for Name: group_extra_revision; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY group_extra_revision (id, group_id, key, value, state, revision_id, continuity_id, expired_id, revision_timestamp, expired_timestamp, current) FROM stdin;
\.
--
-- Data for Name: group_revision; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY group_revision (id, name, title, description, created, state, revision_id, continuity_id, expired_id, revision_timestamp, expired_timestamp, current, type, approval_status, image_url, is_organization) FROM stdin;
\.
--
-- Data for Name: member; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY member (id, table_id, group_id, state, revision_id, table_name, capacity) FROM stdin;
\.
--
-- Data for Name: member_revision; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY member_revision (id, table_id, group_id, state, revision_id, continuity_id, expired_id, revision_timestamp, expired_timestamp, current, table_name, capacity) FROM stdin;
\.
--
-- Data for Name: migrate_version; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY migrate_version (repository_id, repository_path, version) FROM stdin;
Ckan /opt/ckan/src/ckan/ckan/migration 82
\.
--
-- Data for Name: package; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package (id, name, title, version, url, notes, license_id, revision_id, author, author_email, maintainer, maintainer_email, state, type, owner_org, private, metadata_modified, creator_user_id) FROM stdin;
\.
--
-- Data for Name: package_extra; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package_extra (id, package_id, key, value, revision_id, state) FROM stdin;
\.
--
-- Data for Name: package_extra_revision; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package_extra_revision (id, package_id, key, value, revision_id, continuity_id, state, expired_id, revision_timestamp, expired_timestamp, current) FROM stdin;
\.
--
-- Data for Name: package_relationship; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package_relationship (id, subject_package_id, object_package_id, type, comment, revision_id, state) FROM stdin;
\.
--
-- Data for Name: package_relationship_revision; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package_relationship_revision (id, subject_package_id, object_package_id, type, comment, revision_id, continuity_id, state, expired_id, revision_timestamp, expired_timestamp, current) FROM stdin;
\.
--
-- Data for Name: package_revision; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package_revision (id, name, title, version, url, notes, license_id, revision_id, continuity_id, author, author_email, maintainer, maintainer_email, state, expired_id, revision_timestamp, expired_timestamp, current, type, owner_org, private, metadata_modified, creator_user_id) FROM stdin;
\.
--
-- Data for Name: package_tag; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package_tag (id, package_id, tag_id, revision_id, state) FROM stdin;
\.
--
-- Data for Name: package_tag_revision; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY package_tag_revision (id, package_id, tag_id, revision_id, continuity_id, state, expired_id, revision_timestamp, expired_timestamp, current) FROM stdin;
\.
--
-- Data for Name: rating; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY rating (id, user_id, user_ip_address, package_id, rating, created) FROM stdin;
\.
--
-- Data for Name: related; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY related (id, type, title, description, image_url, url, created, owner_id, view_count, featured) FROM stdin;
\.
--
-- Data for Name: related_dataset; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY related_dataset (id, dataset_id, related_id, status) FROM stdin;
\.
--
-- Data for Name: resource; Type: TABLE DATA; Schema: public; Owner: ckan
--
COPY resource (id, url, format, description, "position", revision_id, hash, state, extras, name, resource_type, mimetype, mimetype_inner, size, last_modified, cache_url, cache_last_updated, webstore_url, webstore_last_updated, created, url_type, package_id) FROM stdin;
\.