-
Notifications
You must be signed in to change notification settings - Fork 85
/
covid-19.sql
4018 lines (2725 loc) · 112 KB
/
covid-19.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
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.17
-- Dumped by pg_dump version 9.6.17
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;
--
-- 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 default_tablespace = '';
SET default_with_oids = false;
--
-- Name: allele; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.allele (
id bigint NOT NULL,
version bigint NOT NULL,
bases character varying(255) NOT NULL,
reference boolean NOT NULL,
variant_id bigint
);
ALTER TABLE public.allele OWNER TO apollo;
--
-- Name: allele_info; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.allele_info (
id bigint NOT NULL,
version bigint NOT NULL,
allele_id bigint NOT NULL,
tag character varying(255) NOT NULL,
value text NOT NULL
);
ALTER TABLE public.allele_info OWNER TO apollo;
--
-- Name: analysis; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.analysis (
id bigint NOT NULL,
version bigint NOT NULL,
algorithm character varying(255) NOT NULL,
description character varying(255) NOT NULL,
name character varying(255) NOT NULL,
program character varying(255) NOT NULL,
program_version character varying(255) NOT NULL,
source_name character varying(255) NOT NULL,
sourceuri character varying(255) NOT NULL,
source_version character varying(255) NOT NULL,
time_executed timestamp without time zone NOT NULL
);
ALTER TABLE public.analysis OWNER TO apollo;
--
-- Name: analysis_feature; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.analysis_feature (
id bigint NOT NULL,
version bigint NOT NULL,
analysis_id bigint NOT NULL,
feature_id bigint NOT NULL,
identity double precision NOT NULL,
normalized_score double precision NOT NULL,
raw_score double precision NOT NULL,
significance double precision NOT NULL
);
ALTER TABLE public.analysis_feature OWNER TO apollo;
--
-- Name: analysis_property; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.analysis_property (
id bigint NOT NULL,
version bigint NOT NULL,
analysis_id bigint NOT NULL,
type_id bigint NOT NULL,
value character varying(255) NOT NULL
);
ALTER TABLE public.analysis_property OWNER TO apollo;
--
-- Name: application_preference; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.application_preference (
id bigint NOT NULL,
version bigint NOT NULL,
name character varying(255) NOT NULL,
value character varying(255)
);
ALTER TABLE public.application_preference OWNER TO apollo;
--
-- Name: audit_log; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.audit_log (
id bigint NOT NULL,
actor character varying(255),
class_name character varying(255),
date_created timestamp without time zone NOT NULL,
event_name character varying(255),
last_updated timestamp without time zone NOT NULL,
new_value character varying(255),
old_value character varying(255),
persisted_object_id character varying(255),
persisted_object_version bigint,
property_name character varying(255),
uri character varying(255)
);
ALTER TABLE public.audit_log OWNER TO apollo;
--
-- Name: available_status; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.available_status (
id bigint NOT NULL,
version bigint NOT NULL,
value character varying(255) NOT NULL
);
ALTER TABLE public.available_status OWNER TO apollo;
--
-- Name: available_status_feature_type; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.available_status_feature_type (
available_status_feature_types_id bigint,
feature_type_id bigint
);
ALTER TABLE public.available_status_feature_type OWNER TO apollo;
--
-- Name: canned_comment; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.canned_comment (
id bigint NOT NULL,
version bigint NOT NULL,
comment character varying(255) NOT NULL,
metadata character varying(255)
);
ALTER TABLE public.canned_comment OWNER TO apollo;
--
-- Name: canned_comment_feature_type; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.canned_comment_feature_type (
canned_comment_feature_types_id bigint,
feature_type_id bigint
);
ALTER TABLE public.canned_comment_feature_type OWNER TO apollo;
--
-- Name: canned_key; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.canned_key (
id bigint NOT NULL,
version bigint NOT NULL,
label character varying(255) NOT NULL,
metadata character varying(255)
);
ALTER TABLE public.canned_key OWNER TO apollo;
--
-- Name: canned_key_feature_type; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.canned_key_feature_type (
canned_key_feature_types_id bigint,
feature_type_id bigint
);
ALTER TABLE public.canned_key_feature_type OWNER TO apollo;
--
-- Name: canned_value; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.canned_value (
id bigint NOT NULL,
version bigint NOT NULL,
label character varying(255) NOT NULL,
metadata character varying(255)
);
ALTER TABLE public.canned_value OWNER TO apollo;
--
-- Name: canned_value_feature_type; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.canned_value_feature_type (
canned_value_feature_types_id bigint,
feature_type_id bigint
);
ALTER TABLE public.canned_value_feature_type OWNER TO apollo;
--
-- Name: custom_domain_mapping; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.custom_domain_mapping (
id bigint NOT NULL,
version bigint NOT NULL,
alternate_cv_term character varying(255),
cv_term character varying(255) NOT NULL,
is_transcript boolean NOT NULL,
ontology_id character varying(255) NOT NULL
);
ALTER TABLE public.custom_domain_mapping OWNER TO apollo;
--
-- Name: cv; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.cv (
id bigint NOT NULL,
version bigint NOT NULL,
definition character varying(255) NOT NULL,
name character varying(255) NOT NULL
);
ALTER TABLE public.cv OWNER TO apollo;
--
-- Name: cvterm; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.cvterm (
id bigint NOT NULL,
version bigint NOT NULL,
cv_id bigint NOT NULL,
dbxref_id bigint NOT NULL,
definition character varying(255) NOT NULL,
is_obsolete integer NOT NULL,
is_relationship_type integer NOT NULL,
name character varying(255) NOT NULL
);
ALTER TABLE public.cvterm OWNER TO apollo;
--
-- Name: cvterm_path; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.cvterm_path (
id bigint NOT NULL,
version bigint NOT NULL,
cv_id bigint NOT NULL,
objectcvterm_id bigint NOT NULL,
path_distance integer NOT NULL,
subjectcvterm_id bigint NOT NULL,
type_id bigint NOT NULL
);
ALTER TABLE public.cvterm_path OWNER TO apollo;
--
-- Name: cvterm_relationship; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.cvterm_relationship (
id bigint NOT NULL,
version bigint NOT NULL,
objectcvterm_id bigint NOT NULL,
subjectcvterm_id bigint NOT NULL,
type_id bigint NOT NULL
);
ALTER TABLE public.cvterm_relationship OWNER TO apollo;
--
-- Name: data_adapter; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.data_adapter (
id bigint NOT NULL,
version bigint NOT NULL,
export_source_genomic_sequence boolean,
feature_type_string character varying(255),
implementation_class character varying(255),
data_adapter_key character varying(255) NOT NULL,
options character varying(255),
permission character varying(255) NOT NULL,
source character varying(255),
temp_directory character varying(255)
);
ALTER TABLE public.data_adapter OWNER TO apollo;
--
-- Name: data_adapter_data_adapter; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.data_adapter_data_adapter (
data_adapter_data_adapters_id bigint,
data_adapter_id bigint
);
ALTER TABLE public.data_adapter_data_adapter OWNER TO apollo;
--
-- Name: databasechangelog; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.databasechangelog (
id character varying(63) NOT NULL,
author character varying(63) NOT NULL,
filename character varying(200) NOT NULL,
dateexecuted timestamp with time zone NOT NULL,
orderexecuted integer NOT NULL,
exectype character varying(10) NOT NULL,
md5sum character varying(35),
description character varying(255),
comments character varying(255),
tag character varying(255),
liquibase character varying(20)
);
ALTER TABLE public.databasechangelog OWNER TO apollo;
--
-- Name: databasechangeloglock; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.databasechangeloglock (
id integer NOT NULL,
locked boolean NOT NULL,
lockgranted timestamp with time zone,
lockedby character varying(255)
);
ALTER TABLE public.databasechangeloglock OWNER TO apollo;
--
-- Name: db; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.db (
id bigint NOT NULL,
version bigint NOT NULL,
description character varying(255),
name character varying(255) NOT NULL,
url character varying(255),
url_prefix character varying(255)
);
ALTER TABLE public.db OWNER TO apollo;
--
-- Name: dbxref; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.dbxref (
id bigint NOT NULL,
version character varying(255),
accession character varying(255) NOT NULL,
db_id bigint NOT NULL,
description character varying(255)
);
ALTER TABLE public.dbxref OWNER TO apollo;
--
-- Name: dbxref_property; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.dbxref_property (
id bigint NOT NULL,
version bigint NOT NULL,
dbxref_id bigint NOT NULL,
rank integer NOT NULL,
type_id bigint NOT NULL,
value character varying(255) NOT NULL
);
ALTER TABLE public.dbxref_property OWNER TO apollo;
--
-- Name: environment; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.environment (
id bigint NOT NULL,
version bigint NOT NULL,
description character varying(255) NOT NULL,
uniquename character varying(255) NOT NULL
);
ALTER TABLE public.environment OWNER TO apollo;
--
-- Name: environmentcvterm; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.environmentcvterm (
id bigint NOT NULL,
version bigint NOT NULL,
cvterm_id bigint NOT NULL,
environment_id bigint NOT NULL
);
ALTER TABLE public.environmentcvterm OWNER TO apollo;
--
-- Name: feature; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature (
id bigint NOT NULL,
version bigint NOT NULL,
date_created timestamp without time zone,
dbxref_id bigint,
description text,
is_analysis boolean NOT NULL,
is_obsolete boolean NOT NULL,
last_updated timestamp without time zone,
md5checksum character varying(255),
name text NOT NULL,
sequence_length integer,
status_id bigint,
symbol character varying(255),
unique_name character varying(255) NOT NULL,
class character varying(255) NOT NULL,
analysis_feature_id bigint,
alternate_cv_term character varying(255),
class_name character varying(255),
custom_alternate_cv_term character varying(255),
custom_class_name character varying(255),
custom_cv_term character varying(255),
custom_ontology_id character varying(255),
cv_term character varying(255),
meta_data text,
ontology_id character varying(255),
alteration_residue character varying(255),
deletion_length integer,
reference_allele_id bigint
);
ALTER TABLE public.feature OWNER TO apollo;
--
-- Name: feature_dbxref; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_dbxref (
feature_featuredbxrefs_id bigint,
dbxref_id bigint
);
ALTER TABLE public.feature_dbxref OWNER TO apollo;
--
-- Name: feature_event; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_event (
id bigint NOT NULL,
version bigint NOT NULL,
child_id bigint,
child_split_id bigint,
current boolean NOT NULL,
date_created timestamp without time zone NOT NULL,
editor_id bigint,
last_updated timestamp without time zone NOT NULL,
name text NOT NULL,
new_features_json_array text,
old_features_json_array text,
operation character varying(255) NOT NULL,
original_json_command text,
parent_id bigint,
parent_merge_id bigint,
unique_name character varying(255) NOT NULL
);
ALTER TABLE public.feature_event OWNER TO apollo;
--
-- Name: feature_feature_phenotypes; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_feature_phenotypes (
feature_id bigint NOT NULL,
phenotype_id bigint NOT NULL
);
ALTER TABLE public.feature_feature_phenotypes OWNER TO apollo;
--
-- Name: feature_genotype; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_genotype (
id bigint NOT NULL,
version bigint NOT NULL,
cgroup integer NOT NULL,
chromosome_feature_id bigint NOT NULL,
cvterm_id bigint NOT NULL,
feature_id bigint NOT NULL,
feature_genotype_id integer NOT NULL,
genotype_id bigint NOT NULL,
rank integer NOT NULL
);
ALTER TABLE public.feature_genotype OWNER TO apollo;
--
-- Name: feature_grails_user; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_grails_user (
feature_owners_id bigint,
user_id bigint
);
ALTER TABLE public.feature_grails_user OWNER TO apollo;
--
-- Name: feature_location; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_location (
id bigint NOT NULL,
version bigint NOT NULL,
feature_id bigint NOT NULL,
fmax integer NOT NULL,
fmin integer NOT NULL,
is_fmax_partial boolean NOT NULL,
is_fmin_partial boolean NOT NULL,
locgroup integer NOT NULL,
phase integer,
rank integer NOT NULL,
residue_info character varying(255),
sequence_id bigint NOT NULL,
strand integer
);
ALTER TABLE public.feature_location OWNER TO apollo;
--
-- Name: feature_location_publication; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_location_publication (
feature_location_feature_location_publications_id bigint,
publication_id bigint
);
ALTER TABLE public.feature_location_publication OWNER TO apollo;
--
-- Name: feature_property; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_property (
id bigint NOT NULL,
version bigint NOT NULL,
feature_id bigint NOT NULL,
rank integer NOT NULL,
tag character varying(255),
type_id bigint,
value text NOT NULL,
class character varying(255) NOT NULL
);
ALTER TABLE public.feature_property OWNER TO apollo;
--
-- Name: feature_property_publication; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_property_publication (
feature_property_feature_property_publications_id bigint,
publication_id bigint
);
ALTER TABLE public.feature_property_publication OWNER TO apollo;
--
-- Name: feature_publication; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_publication (
feature_feature_publications_id bigint,
publication_id bigint
);
ALTER TABLE public.feature_publication OWNER TO apollo;
--
-- Name: feature_relationship; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_relationship (
id bigint NOT NULL,
version bigint NOT NULL,
child_feature_id bigint NOT NULL,
parent_feature_id bigint NOT NULL,
rank integer NOT NULL,
value character varying(255)
);
ALTER TABLE public.feature_relationship OWNER TO apollo;
--
-- Name: feature_relationship_feature_property; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_relationship_feature_property (
feature_relationship_feature_relationship_properties_id bigint,
feature_property_id bigint
);
ALTER TABLE public.feature_relationship_feature_property OWNER TO apollo;
--
-- Name: feature_relationship_publication; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_relationship_publication (
feature_relationship_feature_relationship_publications_id bigint,
publication_id bigint
);
ALTER TABLE public.feature_relationship_publication OWNER TO apollo;
--
-- Name: feature_synonym; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_synonym (
id bigint NOT NULL,
version bigint NOT NULL,
feature_id bigint NOT NULL,
is_current boolean,
is_internal boolean,
publication_id bigint,
synonym_id bigint NOT NULL
);
ALTER TABLE public.feature_synonym OWNER TO apollo;
--
-- Name: feature_type; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.feature_type (
id bigint NOT NULL,
version bigint NOT NULL,
display character varying(255) NOT NULL,
name character varying(255) NOT NULL,
ontology_id character varying(255) NOT NULL,
type character varying(255) NOT NULL
);
ALTER TABLE public.feature_type OWNER TO apollo;
--
-- Name: featurecvterm; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.featurecvterm (
id bigint NOT NULL,
version bigint NOT NULL,
cvterm_id bigint NOT NULL,
feature_id bigint NOT NULL,
is_not boolean NOT NULL,
publication_id bigint NOT NULL,
rank integer NOT NULL
);
ALTER TABLE public.featurecvterm OWNER TO apollo;
--
-- Name: featurecvterm_dbxref; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.featurecvterm_dbxref (
featurecvterm_featurecvtermdbxrefs_id bigint,
dbxref_id bigint
);
ALTER TABLE public.featurecvterm_dbxref OWNER TO apollo;
--
-- Name: featurecvterm_publication; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.featurecvterm_publication (
featurecvterm_featurecvterm_publications_id bigint,
publication_id bigint
);
ALTER TABLE public.featurecvterm_publication OWNER TO apollo;
--
-- Name: gene_product; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.gene_product (
id bigint NOT NULL,
version bigint NOT NULL,
alternate boolean NOT NULL,
date_created timestamp without time zone NOT NULL,
evidence_ref character varying(255) NOT NULL,
evidence_ref_label character varying(255),
feature_id bigint NOT NULL,
last_updated timestamp without time zone NOT NULL,
notes_array character varying(255),
product_name character varying(255) NOT NULL,
reference character varying(255) NOT NULL,
with_or_from_array character varying(255)
);
ALTER TABLE public.gene_product OWNER TO apollo;
--
-- Name: gene_product_grails_user; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.gene_product_grails_user (
gene_product_owners_id bigint,
user_id bigint
);
ALTER TABLE public.gene_product_grails_user OWNER TO apollo;
--
-- Name: genotype; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.genotype (
id bigint NOT NULL,
version bigint NOT NULL,
description character varying(255) NOT NULL,
genotype_id integer NOT NULL,
name character varying(255) NOT NULL,
unique_name character varying(255) NOT NULL
);
ALTER TABLE public.genotype OWNER TO apollo;
--
-- Name: go_annotation; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.go_annotation (
id bigint NOT NULL,
version bigint NOT NULL,
aspect character varying(255) NOT NULL,
date_created timestamp without time zone NOT NULL,
evidence_ref character varying(255) NOT NULL,
evidence_ref_label character varying(255),
feature_id bigint NOT NULL,
gene_product_relationship_ref character varying(255),
go_ref character varying(255) NOT NULL,
go_ref_label character varying(255),
last_updated timestamp without time zone NOT NULL,
negate boolean NOT NULL,
notes_array character varying(255),
reference character varying(255) NOT NULL,
with_or_from_array character varying(255)
);
ALTER TABLE public.go_annotation OWNER TO apollo;
--
-- Name: go_annotation_grails_user; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.go_annotation_grails_user (
go_annotation_owners_id bigint,
user_id bigint
);
ALTER TABLE public.go_annotation_grails_user OWNER TO apollo;
--
-- Name: grails_user; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.grails_user (
id bigint NOT NULL,
version bigint NOT NULL,
first_name character varying(255) NOT NULL,
inactive boolean NOT NULL,
last_name character varying(255) NOT NULL,
metadata character varying(255),
password_hash character varying(255) NOT NULL,
username character varying(255) NOT NULL
);
ALTER TABLE public.grails_user OWNER TO apollo;
--
-- Name: grails_user_roles; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.grails_user_roles (
role_id bigint NOT NULL,
user_id bigint NOT NULL
);
ALTER TABLE public.grails_user_roles OWNER TO apollo;
--
-- Name: hibernate_sequence; Type: SEQUENCE; Schema: public; Owner: apollo
--
CREATE SEQUENCE public.hibernate_sequence
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.hibernate_sequence OWNER TO apollo;
--
-- Name: operation; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.operation (
id bigint NOT NULL,
version bigint NOT NULL,
attributes text,
feature_unique_name character varying(255) NOT NULL,
new_features text,
old_features text,
operation_type character varying(255) NOT NULL
);
ALTER TABLE public.operation OWNER TO apollo;
--
-- Name: organism; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.organism (
id bigint NOT NULL,
version bigint NOT NULL,
abbreviation character varying(255),
blatdb character varying(255),
comment character varying(255),
common_name character varying(255) NOT NULL,
data_added_via_web_services boolean,
directory character varying(255) NOT NULL,
genome_fasta character varying(255),
genome_fasta_index character varying(255),
genus character varying(255),
metadata text,
non_default_translation_table character varying(255),
obsolete boolean NOT NULL,
official_gene_set_track character varying(255),
public_mode boolean DEFAULT true NOT NULL,
species character varying(255),
valid boolean
);
ALTER TABLE public.organism OWNER TO apollo;
--
-- Name: organism_filter; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.organism_filter (
id bigint NOT NULL,
version bigint NOT NULL,
organism_id bigint NOT NULL,
class character varying(255) NOT NULL,
canned_value_id bigint,
canned_comment_id bigint,
suggested_name_id bigint,
canned_key_id bigint,
available_status_id bigint
);
ALTER TABLE public.organism_filter OWNER TO apollo;
--
-- Name: organism_organism_property; Type: TABLE; Schema: public; Owner: apollo
--
CREATE TABLE public.organism_organism_property (
organism_organism_properties_id bigint,
organism_property_id bigint
);
ALTER TABLE public.organism_organism_property OWNER TO apollo;
--
-- Name: organism_property; Type: TABLE; Schema: public; Owner: apollo