/
ag.html
3922 lines (3807 loc) · 207 KB
/
ag.html
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
<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN' 'http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' >
<head>
<title>Database Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type='text/css'>
body {
/*margin: 20px auto;*/
font-family: 'trebuchet MS', 'Lucida sans', Arial;
font-size: 12px;
color: #444;
}
table {
*border-collapse: collapse; /* IE7 and lower */
border-spacing: 0;
/*width: 100%;*/
}
.bordered {
border: solid #ccc 1px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 1px 1px #ccc;
-moz-box-shadow: 0 1px 1px #ccc;
box-shadow: 0 1px 1px #ccc;
}
.bordered tr:hover {
background: #fbf8e9;
-o-transition: all 0.1s ease-in-out;
-webkit-transition: all 0.1s ease-in-out;
-moz-transition: all 0.1s ease-in-out;
-ms-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
}
.bordered td, .bordered th {
border-left: 1px solid #ccc;
border-top: 1px solid #ccc;
padding: 4px;
text-align: left;
}
.bordered th {
background-color: #dce9f9;
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
background-image: linear-gradient(top, #ebf3fc, #dce9f9);
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
-moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
border-top: none;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.bordered td:first-child, .bordered th:first-child {
border-left: none;
}
.bordered th:first-child {
-moz-border-radius: 6px 0 0 0;
-webkit-border-radius: 6px 0 0 0;
border-radius: 6px 0 0 0;
}
.bordered th:last-child {
-moz-border-radius: 0 6px 0 0;
-webkit-border-radius: 0 6px 0 0;
border-radius: 0 6px 0 0;
}
.bordered th:only-child{
-moz-border-radius: 6px 6px 0 0;
-webkit-border-radius: 6px 6px 0 0;
border-radius: 6px 6px 0 0;
}
.bordered tr:last-child td:first-child {
-moz-border-radius: 0 0 0 6px;
-webkit-border-radius: 0 0 0 6px;
border-radius: 0 0 0 6px;
}
.bordered tr:last-child td:last-child {
-moz-border-radius: 0 0 6px 0;
-webkit-border-radius: 0 0 6px 0;
border-radius: 0 0 6px 0;
}
</style>
</head>
<body>
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='1440' height='2630' viewbox='0 0 1440 2630' >
<style type='text/css'>
text { fill:#000000; font-family: Dialog, Dialog, Arial; font-size:11px; stroke:#000000; stroke-width:0.1; }
text:hover { fill:#a00000; font-size:12px;}
text.colType { fill:#a9bdc6; }
text.tableTitle { fill:#000000; }
path { stroke:#5c5750; stroke-width:1.2; fill:none; }
rect.table { fill:#ffffff; stroke:#4e4c4c; stroke-width:0.3; filter:url(#shadow); }
line.table { stroke:#9ea1a4; stroke-width:0.3; }
rect.callout { fill:url(#calloutGradient); stroke:#bebdbd; stroke-width:0.5; }
rect.grp { opacity:0.5; stroke:#b1b1b1; stroke-width:1.7; }
</style>
<defs>
<pattern id='layoutGradient' patternUnits='userSpaceOnUse' x='0' y='0' width='7' height='7' viewBox='0 0 7 7'>
<rect x='0' y='0' width='7' height='7' style='fill:#f1efe8;' />
<line x1='5' y1='7' x2='5' y2='0' style='stroke:#b7b7b7;stroke-width:0.5;stroke-dasharray:1,9;' />
</pattern>
<radialGradient id='layoutGradientOld' cx='20%' cy='20%' r='25%' fx='10%' fy='0%'>
<stop offset='0%' stop-color='#ffffff' />
<stop offset='100%' stop-color='#efefef' />
</radialGradient>
<linearGradient id='tableHeaderGradient8' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#b2cdf7'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#b2cdf7'/>
</linearGradient>
<linearGradient id='tableHeaderGradient5' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#cef7c6'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#cef7c6'/>
</linearGradient>
<linearGradient id='tableHeaderGradient4' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#a8c4ef'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#a8c4ef'/>
</linearGradient>
<linearGradient id='tableHeaderGradient7' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#c6d9f7'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#c6d9f7'/>
</linearGradient>
<linearGradient id='tableHeaderGradient0' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#f7e2c6'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#f7e2c6'/>
</linearGradient>
<linearGradient id='tableHeaderGradient6' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#b7c8e3'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#b7c8e3'/>
</linearGradient>
<linearGradient id='tableHeaderGradient2' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#ffcccc'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#ffcccc'/>
</linearGradient>
<linearGradient id='tableHeaderGradient1' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#c6c6f7'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#c6c6f7'/>
</linearGradient>
<linearGradient id='tableHeaderGradient3' x1='0%' y1='0%' x2='0%' y2='90%' >
<stop offset='0%' stop-color='#ffffff'/>
<stop offset='30%' stop-color='white'/>
<stop offset='100%' stop-color='#ffffff'/>
</linearGradient>
<linearGradient id='groupUnderTitleLine' x1='0%' y1='0%' x2='100%' y2='0%' >
<stop offset='0%' stop-color='#999999' stop-opacity='0.7'/>
<stop offset='100%' stop-color='#999999' stop-opacity='0' />
</linearGradient>
<radialGradient id='calloutGradient' cx='20%' cy='20%' r='100%' fx='10%' fy='10%'>
<stop offset='0%' stop-color='#ffffff' />
<stop offset='100%' stop-color='#e8e8e7' />
</radialGradient>
<filter id='shadow' height='130%'>
<feGaussianBlur in='SourceAlpha' stdDeviation='1.5'/> <!-- stdDeviation is how much to blur -->
<feOffset dx='1.3' dy='1.3' result='offsetblur'/> <!-- how much to offset -->
<feMerge>
<feMergeNode/> <!-- this contains the offset blurred image -->
<feMergeNode in='SourceGraphic'/> <!-- this contains the element that the filter is applied to -->
</feMerge>
</filter>
<filter id='shadowOld' width='150%' height='150%'>
<feGaussianBlur in='SourceAlpha' stdDeviation='2' result='image1' />
<feOffset in='image1' result='image2' dx='2' dy='2' />
<feColorMatrix type='matrix' in='image2' result='image3'
values='1 1 1 0 0
1 1 1 0 0
1 1 1 0 0
0 0 0 .5 0'/>
<feComposite in='SourceGraphic' in2='image3' operator='over' />
</filter>
<filter id='legendShadow' filterUnits='userSpaceOnUse' x='0' y='0' width='400' height='120'>
<feGaussianBlur in='SourceAlpha' stdDeviation='3' result='blur'/>
<feOffset in='blur' dx='2' dy='2' result='offsetBlur'/>
<feSpecularLighting in='blur' surfaceScale='5' specularConstant='.75' specularExponent='20' lighting-color='#bbbbbb' result='specOut'>
<fePointLight x='-5000' y='-10000' z='20000'/>
</feSpecularLighting>
<feComposite in='specOut' in2='SourceAlpha' operator='in' result='specOut'/>
<feComposite in='SourceGraphic' in2='specOut' operator='arithmetic' k1='0' k2='1' k3='1' k4='0' result='litPaint'/>
<feMerge>
<feMergeNode in='offsetBlur'/>
<feMergeNode in='litPaint'/>
</feMerge>
</filter>
<radialGradient id='legendGradient' fx='5%' fy='5%' r='75%' spreadMethod='pad'>
<stop offset='0%' stop-color='#cfd7f6' stop-opacity='1'/>
<stop offset='100%' stop-color='#919dd0' stop-opacity='1' />
</radialGradient>
<symbol id='calloutArrowDown' overflow='visible' >
<path d='M 0,0 L 7,11 L 15,0 z' style='fill:#e8e8e7; stroke:#bebdbd; stroke-width:0.5;' />
</symbol>
<symbol id='calloutArrowUp' overflow='visible' >
<path d='M 0,15 L 7,3 L 15,15 z' style='fill:#e8e8e7; stroke:#bebdbd; stroke-width:0.5;' />
</symbol>
<symbol id='pk' overflow='visible' >
<g transform='scale(0.99)'>
<path style='fill:#fbea8e;stroke:#763f17;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;'
d='M 9.3678877,3.5695485 C 9.1030218,3.2729386 9.0796382,2.7628519 9.3396185,2.4517097 9.5449651,2.1956495 9.9040386,2.0980533 10.199638,2.2169415 10.533525,2.3415459 10.775153,2.706942 10.750675,3.0842709 10.737029,3.3980003 10.541153,3.699122 10.258248,3.8066067 9.966649,3.9250429 9.6169668,3.8418805 9.4008073,3.6062324 9.3894892,3.5943518 9.3785264,3.582104 9.3678886,3.5695487 z M 11.226617,6.9916004 C 11.888137,6.3548946 12.293488,5.4172188 12.311087,4.442353 12.378144,2.7379364 11.248678,1.0541269 9.7322318,0.44767357 8.3887112,-0.1280313 6.7865012,0.26822889 5.8918395,1.4007929 5.080823,2.3839145 4.9336815,3.8452096 5.3635544,5.101615 L 4.3670905,5.315913 C 4.0664984,5.3682645 4.0967703,5.6316724 4.2574957,5.8208829 L 4.9124,6.5655244 4.1543436,7.2512357 3.2136002,7.2163506 3.1674775,8.5586827 2.0406832,8.5086512 1.5965306,8.9299953 1.5471661,10.179833 0.75616674,10.195223 0.2112857,10.758575 0.15354288,11.735988 0.07199052,12.765553 c 0.36440953,0.238225 0.79006967,0.195492 1.44938278,-0.02675 L 6.3033562,8.1282037 6.8217102,8.6765688 C 6.9985465,8.8799427 7.3003699,8.7497574 7.358381,8.5016252 L 7.4938877,7.5084164 c 0.8537488,0.3985387 1.8303125,0.4711541 2.6851793,0.1427713 0.393927,-0.1407258 0.746858,-0.3701772 1.04755,-0.6595873 z'/>
<path d='M 6.8014948,6.3102123 0.15369063,13.024481 0.21560535,12.141962 6.0062342,6.2683782 z'
style='fill:#ffe5a5;fill-opacity:1;stroke:#854e31;stroke-width:0.06912433;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:3.00300009'/>
</g>
</symbol>
<symbol id='unq' overflow='visible' >
<g transform='scale(0.99)'>
<rect style='fill:#e07554;stroke:#7e4d31;stroke-width:0.71934468;stroke-linecap:round;stroke-linejoin:round;'
width='2.29' height='8.43' x='7.48' y='-0.76' ry='1.14' transform='matrix(0.701,0.713,-0.727,0.685,0,0)' />
<path style='fill:white;stroke:#858585;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;'
d='m 26.04,8.64 a 4.13,4.13 0 1 1 -8.26,0 4.13,4.13 0 1 1 8.26,0 z'
transform='matrix(1.025,0,0,0.987,-14.690,-3.862)' />
<text x='5.5' y='7.7' style='font-size:8px;fill:#0460b5;'>1</text>
</g>
</symbol>
<symbol id='idx' overflow='visible' >
<g transform='scale(0.99)'>
<rect style='fill:#e07554;stroke:#7e4d31;stroke-width:0.71934468;stroke-linecap:round;stroke-linejoin:round;'
width='2.29' height='8.43' x='7.48' y='-0.76' ry='1.14' transform='matrix(0.701,0.713,-0.727,0.685,0,0)' />
<path style='fill:white;stroke:#858585;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;'
d='m 26.04,8.64 a 4.13,4.13 0 1 1 -8.26,0 4.13,4.13 0 1 1 8.26,0 z'
transform='matrix(1.025,0,0,0.987,-14.690,-3.862)' />
</g>
</symbol>
<symbol id='fk' overflow='visible' >
<g transform='scale(0.92)'>
<path style='fill:#b7d0f6;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
d='M 12.48,0.33 7.07,0.89 9.067,2.974 0.329,11.731 1.073,12.597 9.811,3.841 11.77,5.78 z' />
</g>
</symbol>
<symbol id='ref' overflow='visible' >
<g transform='scale(0.92)'>
<path style='fill:#b7d0f6;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
d='M 0.10,12.70 5.31,12.15 3.40,10.06 11.82,1.32 11.11,0.45 2.68,9.19 0.80,7.24 z'/>
</g>
</symbol>
<symbol id='flag' overflow='visible' >
<g transform='scale(0.92)'>
<path style='fill:#b7d0f6;stroke:#000000;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
d='M 0.12,12.67 0.16,7.22 C 2.59,7.22 4.13,8.78 9.22,4.22 5.68,4.98 2.53,4.50 0.09,1.80 z'/>
</g>
</symbol>
<symbol id='nn' overflow='visible' >
<path style='stroke:#9b3e50;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;'
d='M 0,0 3,3 M 0,3 3,0 z'/>
</symbol>
<marker id='arrow' viewBox='0 0 7 7' refX='0' refY='3' markerUnits='strokeWidth' markerWidth='7' markerHeight='7' orient='auto'>
<path d='M 0,0 L 7, 3 L 0,7 z' style='fill:#5c5750; stroke-width:0px;' />
</marker>
<marker id='foot' viewBox='0 0 7 7' refX='7' refY='3' markerUnits='strokeWidth' markerWidth='7' markerHeight='7' orient='auto'>
<path d='M 0,3 L 15, 3 z' style='stroke:#5c5750;' />
</marker>
</defs>
<!-- ============= Desktop ============= -->
<rect x='1' y='1' width='1438' height='2628' rx='7' ry='7' style='fill:url(#layoutGradient); stroke:#333333; stroke-width:0.5;' />
<!-- ============= Legend ============= -->
<g transform='translate(10,10)'>
<rect x='10' y='10' width='320' height='76' rx='6' ry='6' style='fill:url(#legendGradient);filter:url(#legendShadow);'/>
<text x='20' y='30'><tspan>Project</tspan> PostgreSQL</text>
<text x='20' y='44'><tspan>Layout</tspan> public</text>
<text x='20' y='58' style='fill:#777'><tspan>Hint: Read the column comments as mouse-over tooltips.</tspan></text>
<text x='180' y='74'><tspan>Generated using <a xlink:href='http://www.dbschema.com'>DbSchema</a></tspan></text>
</g>
<g transform='translate(0,110)'>
<!-- ============= Group 'ag_survey_multiples' ============= -->
<rect class='grp' style='fill:#faf6f0;stroke:#e0d6c5' x='59' y='940' width='632' height='1010' />
<text x='70' y='955'>ag_survey_multiples</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='70' y='958' width='610' height='2' />
<!-- ============= Group 'disconnected tables' ============= -->
<rect class='grp' style='fill:#f2faf0;stroke:#cbe0c5' x='29' y='10' width='767' height='275' />
<text x='40' y='25'>disconnected tables</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='40' y='28' width='745' height='2' />
<!-- ============= Group 'american_gut_consent' ============= -->
<rect class='grp' style='fill:#f0f4fa;stroke:#c5d0e0' x='809' y='235' width='602' height='1760' />
<text x='820' y='250'>american_gut_consent</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='820' y='253' width='580' height='2' />
<!-- ============= Group 'controlled_vocab_values' ============= -->
<rect class='grp' style='fill:#f0f0fa;stroke:#c5c5e0' x='809' y='10' width='572' height='215' />
<text x='820' y='25'>controlled_vocab_values</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='820' y='28' width='550' height='2' />
<!-- ============= Group 'survey_questions' ============= -->
<rect class='grp' style='fill:#c4e0f9;stroke:#c5d4e0' x='59' y='2005' width='1127' height='485' />
<text x='70' y='2020'>survey_questions</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='70' y='2023' width='1105' height='2' />
<!-- ============= Group 'Group_handout_kits' ============= -->
<rect class='grp' style='fill:#c4e0f9;stroke:#c5d4e0' x='44' y='295' width='377' height='185' />
<text x='55' y='310'>Group_handout_kits</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='55' y='313' width='355' height='2' />
<!-- ============= Group 'Schema_barcodes' ============= -->
<rect class='grp' style='fill:#c4e0f9;stroke:#c5d4e0' x='59' y='505' width='362' height='410' />
<text x='70' y='520'>Schema_barcodes</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='70' y='523' width='340' height='2' />
<!-- ============= Group 'Group_labadmin_users' ============= -->
<rect class='grp' style='fill:#ffccff;stroke:#e0c5e0' x='1214' y='2020' width='182' height='380' />
<text x='1225' y='2035'>Group_labadmin_users</text>
<rect style='fill:url(#groupUnderTitleLine); stroke-width:2;' x='1225' y='2038' width='160' height='2' />
<path transform='translate(7,0)' marker-start='url(#foot)' d='M 225 1410 L 232,1410 Q 240,1410 240,1402 L 240,1132 Q 240,1125 232,1125 L 225,1125' >
<title>Foreign Key fk_sur_an_to_ag_login
ag_survey_answer references ag_login ( ag_login_id )</title>
</path>
<text x='232' y='1405' transform='rotate(0 232,1405)' title='Foreign Key fk_sur_an_to_ag_login
ag_survey_answer references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 1020 90 L 997,90 Q 990,90 990,82 L 990,82 Q 990,75 982,75 L 975,75' >
<title>Foreign Key fk_cont_vcb_values_cont_vcbs
controlled_vocab_values references controlled_vocabs ( controlled_vocab_id )</title>
</path>
<text x='913' y='85' transform='rotate(0 913,85)' title='Foreign Key fk_cont_vcb_values_cont_vcbs
controlled_vocab_values references controlled_vocabs ( controlled_vocab_id )' style='fill:#a1a0a0;'>controlled_vocab_id</text><path transform='translate(7,0)' marker-start='url(#foot)' style='stroke-dasharray:4,2;' d='M 465 1035 L 457,1035 Q 450,1035 450,1027 L 450,952 Q 450,945 442,945 L 37,945 Q 30,945 30,952 L 30,960' >
<title>Foreign Key fk_ag_participant_exceptions
ag_participant_exceptions references ag_login ( ag_login_id )</title>
</path>
<text x='405' y='1030' transform='rotate(0 405,1030)' title='Foreign Key fk_ag_participant_exceptions
ag_participant_exceptions references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 270 1005 L 247,1005 Q 240,1005 240,1012 L 240,1117 Q 240,1125 232,1125 L 225,1125' >
<title>Foreign Key fk_ag_animal_surv_to_ag_login
ag_animal_survey references ag_login ( ag_login_id )</title>
</path>
<text x='210' y='1000' transform='rotate(0 210,1000)' title='Foreign Key fk_ag_animal_surv_to_ag_login
ag_animal_survey references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 285 1470 L 247,1470 Q 240,1470 240,1462 L 240,1395' >
<title>Foreign Key fk_ag_mul_to_ag_login
ag_survey_multiples references ag_login ( ag_login_id )</title>
</path>
<text x='225' y='1465' transform='rotate(0 225,1465)' title='Foreign Key fk_ag_mul_to_ag_login
ag_survey_multiples references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 315 2070 L 180,2070' >
<title>Foreign Key fk_human_survey_group_question
group_questions references survey_group ( survey_group -> group_order )</title>
</path>
<text x='242' y='2065' transform='rotate(0 242,2065)' title='Foreign Key fk_human_survey_group_question
group_questions references survey_group ( survey_group -> group_order )' style='fill:#a1a0a0;'>survey_group</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 465 2085 L 607,2085 Q 615,2085 615,2092 L 615,2227 Q 615,2235 607,2235 L 600,2235' >
<title>Foreign Key fk_human_survey_group_question_0
group_questions references survey_question ( survey_question_id )</title>
</path>
<text x='472' y='2080' transform='rotate(0 472,2080)' title='Foreign Key fk_human_survey_group_question_0
group_questions references survey_question ( survey_question_id )' style='fill:#a1a0a0;'>survey_question_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 990 1020 L 1177,1020 Q 1185,1020 1185,1012 L 1185,1005' >
<title>Foreign Key fk_survey_answers_other
survey_answers_other references ag_login_surveys ( survey_id )</title>
</path>
<text x='997' y='1015' transform='rotate(0 997,1015)' title='Foreign Key fk_survey_answers_other
survey_answers_other references ag_login_surveys ( survey_id )' style='fill:#a1a0a0;'>survey_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 840 1035 L 697,1035 Q 690,1035 690,1042 L 690,2062 Q 690,2070 682,2070 L 622,2070 Q 615,2070 615,2077 L 615,2100' >
<title>Foreign Key fk_survey_answers_other_0
survey_answers_other references survey_question ( survey_question_id )</title>
</path>
<text x='737' y='1030' transform='rotate(0 737,1030)' title='Foreign Key fk_survey_answers_other_0
survey_answers_other references survey_question ( survey_question_id )' style='fill:#a1a0a0;'>survey_question_id</text><path transform='translate(7,0)' marker-start='url(#foot)' style='stroke-dasharray:4,2;' d='M 660 2160 L 622,2160 Q 615,2160 615,2167 L 615,2175' >
<title>Foreign Key fk_survey_question_triggers
survey_question_triggers references survey_question ( triggered_question -> survey_question_id )</title>
</path>
<text x='559' y='2155' transform='rotate(0 559,2155)' title='Foreign Key fk_survey_question_triggers
survey_question_triggers references survey_question ( triggered_question -> survey_question_id )' style='fill:#a1a0a0;'>triggered_question</text><path transform='translate(7,0)' marker-start='url(#foot)' style='stroke-dasharray:4,2;' d='M 825 2145 L 892,2145 Q 900,2145 900,2152 L 900,2160' >
<title>Foreign Key fk_survey_question_triggers0
survey_question_triggers references survey_question_response ( survey_question_id, triggering_response -> response )</title>
</path>
<text x='832' y='2140' transform='rotate(0 832,2140)' title='Foreign Key fk_survey_question_triggers0
survey_question_triggers references survey_question_response ( survey_question_id, triggering_response -> response )' style='fill:#a1a0a0;'>survey_question_id,triggering_response</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 705 2250 L 697,2250 Q 690,2250 690,2257 L 690,2332 Q 690,2340 697,2340 L 705,2340' >
<title>Foreign Key fk_question_response
survey_question_response references survey_response ( response -> american )</title>
</path>
<text x='657' y='2245' transform='rotate(0 657,2245)' title='Foreign Key fk_question_response
survey_question_response references survey_response ( response -> american )' style='fill:#a1a0a0;'>response</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 705 2235 L 652,2235 Q 645,2235 645,2227 L 645,2167 Q 645,2160 637,2160 L 630,2160' >
<title>Foreign Key fk_question_response_0
survey_question_response references survey_question ( survey_question_id )</title>
</path>
<text x='602' y='2230' transform='rotate(0 602,2230)' title='Foreign Key fk_question_response_0
survey_question_response references survey_question ( survey_question_id )' style='fill:#a1a0a0;'>survey_question_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 915 2340 L 825,2340' >
<title>Foreign Key fk_iso_country_lookup
iso_country_lookup references survey_response ( country -> american )</title>
</path>
<text x='875' y='2335' transform='rotate(0 875,2335)' title='Foreign Key fk_iso_country_lookup
iso_country_lookup references survey_response ( country -> american )' style='fill:#a1a0a0;'>country</text><path transform='translate(7,0)' marker-start='url(#foot)' style='stroke-dasharray:4,2;' d='M 705 2430 L 622,2430 Q 615,2430 615,2422 L 615,2242 Q 615,2235 607,2235 L 600,2235' >
<title>Foreign Key fk_human_survey_response_type
survey_question_response_type references survey_question ( survey_question_id )</title>
</path>
<text x='602' y='2425' transform='rotate(0 602,2425)' title='Foreign Key fk_human_survey_response_type
survey_question_response_type references survey_question ( survey_question_id )' style='fill:#a1a0a0;'>survey_question_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 915 2445 L 1005,2445' >
<title>Foreign Key fk_human_survey_question_response_type
survey_question_response_type references survey_response_types ( survey_response_type )</title>
</path>
<text x='922' y='2440' transform='rotate(0 922,2440)' title='Foreign Key fk_human_survey_question_response_type
survey_question_response_type references survey_response_types ( survey_response_type )' style='fill:#a1a0a0;'>survey_response_type</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 945 1140 L 907,1140 Q 900,1140 900,1147 L 900,2242 Q 900,2250 892,2250 L 885,2250' >
<title>Foreign Key fk_survey_answers
survey_answers references survey_question_response ( survey_question_id, response )</title>
</path>
<text x='789' y='1135' transform='rotate(0 789,1135)' title='Foreign Key fk_survey_answers
survey_answers references survey_question_response ( survey_question_id, response )' style='fill:#a1a0a0;'>survey_question_id,response</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 1095 1110 L 1177,1110 Q 1185,1110 1185,1102 L 1185,1095' >
<title>Foreign Key fk_survey_answers_0
survey_answers references ag_login_surveys ( survey_id )</title>
</path>
<text x='1102' y='1105' transform='rotate(0 1102,1105)' title='Foreign Key fk_survey_answers_0
survey_answers references ag_login_surveys ( survey_id )' style='fill:#a1a0a0;'>survey_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 1140 1230 L 1177,1230 Q 1185,1230 1185,1222 L 1185,1215' >
<title>Foreign Key fk_third_party_surveys
external_survey_answers references ag_login_surveys ( survey_id )</title>
</path>
<text x='1147' y='1225' transform='rotate(0 1147,1225)' title='Foreign Key fk_third_party_surveys
external_survey_answers references ag_login_surveys ( survey_id )' style='fill:#a1a0a0;'>survey_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 1140 1245 L 1147,1245 Q 1155,1245 1155,1252 L 1155,1372 Q 1155,1380 1147,1380 L 1140,1380' >
<title>Foreign Key fk_external_survey
external_survey_answers references external_survey_sources ( external_survey_id )</title>
</path>
<text x='1147' y='1240' transform='rotate(0 1147,1240)' title='Foreign Key fk_external_survey
external_survey_answers references external_survey_sources ( external_survey_id )' style='fill:#a1a0a0;'>external_survey_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 285 765 L 262,765 Q 255,765 255,757 L 255,652 Q 255,645 247,645 L 240,645' >
<title>Foreign Key fk_pb_to_barcode
project_barcode references barcode ( barcode )</title>
</path>
<text x='243' y='760' transform='rotate(0 243,760)' title='Foreign Key fk_pb_to_barcode
project_barcode references barcode ( barcode )' style='fill:#a1a0a0;'>barcode</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 405 750 L 412,750 Q 420,750 420,742 L 420,667 Q 420,660 412,660 L 405,660' >
<title>Foreign Key fk_pb_to_project
project_barcode references project ( project_id )</title>
</path>
<text x='412' y='745' transform='rotate(0 412,745)' title='Foreign Key fk_pb_to_project
project_barcode references project ( project_id )' style='fill:#a1a0a0;'>project_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 90 855 L 52,855 Q 45,855 45,847 L 45,840' >
<title>Foreign Key fk_plate_barcode
plate_barcode references barcode ( barcode )</title>
</path>
<text x='48' y='850' transform='rotate(0 48,850)' title='Foreign Key fk_plate_barcode
plate_barcode references barcode ( barcode )' style='fill:#a1a0a0;'>barcode</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 195 840 L 255,840' >
<title>Foreign Key fk_plate_barcode_0
plate_barcode references plate ( plate_id )</title>
</path>
<text x='202' y='835' transform='rotate(0 202,835)' title='Foreign Key fk_plate_barcode_0
plate_barcode references plate ( plate_id )' style='fill:#a1a0a0;'>plate_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 240 360 L 195,360' >
<title>Foreign Key fk_handout_barcode_0
ag_handout_barcodes references ag_handout_kits ( kit_id )</title>
</path>
<text x='213' y='355' transform='rotate(0 213,355)' title='Foreign Key fk_handout_barcode_0
ag_handout_barcodes references ag_handout_kits ( kit_id )' style='fill:#a1a0a0;'>kit_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 405 390 L 412,390 Q 420,390 420,397 L 420,592 Q 420,600 412,600 L 262,600 Q 255,600 255,607 L 255,637 Q 255,645 247,645 L 240,645' >
<title>Foreign Key fk_ag_handout_barcodes
ag_handout_barcodes references barcode ( barcode )</title>
</path>
<text x='412' y='385' transform='rotate(0 412,385)' title='Foreign Key fk_ag_handout_barcodes
ag_handout_barcodes references barcode ( barcode )' style='fill:#a1a0a0;'>barcode</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 210 570 L 247,570 Q 255,570 255,577 L 255,615' >
<title>Foreign Key fk_barcode_exceptions
barcode_exceptions references barcode ( barcode )</title>
</path>
<text x='217' y='565' transform='rotate(0 217,565)' title='Foreign Key fk_barcode_exceptions
barcode_exceptions references barcode ( barcode )' style='fill:#a1a0a0;'>barcode</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 495 1425 L 457,1425 Q 450,1425 450,1417 L 450,1020' >
<title>Foreign Key fk_ag_kit_to_login_id
ag_kit references ag_login ( ag_login_id )</title>
</path>
<text x='435' y='1420' transform='rotate(0 435,1420)' title='Foreign Key fk_ag_kit_to_login_id
ag_kit references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 975 555 L 457,555 Q 450,555 450,562 L 450,937 Q 450,945 442,945 L 435,945' >
<title>Foreign Key fk_american_gut_consent
ag_consent references ag_login ( ag_login_id )</title>
</path>
<text x='915' y='550' transform='rotate(0 915,550)' title='Foreign Key fk_american_gut_consent
ag_consent references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 1020 900 L 997,900 Q 990,900 990,892 L 990,847 Q 990,840 982,840 L 457,840 Q 450,840 450,847 L 450,855' >
<title>Foreign Key fk_ag_login_surveys
ag_login_surveys references ag_login ( ag_login_id )</title>
</path>
<text x='960' y='895' transform='rotate(0 960,895)' title='Foreign Key fk_ag_login_surveys
ag_login_surveys references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' style='stroke-dasharray:4,2;' d='M 1020 930 L 1012,930 Q 1005,930 1005,922 L 1005,772 Q 1005,765 997,765 L 967,765 Q 960,765 960,757 L 960,577 Q 960,570 967,570 L 975,570' >
<title>Foreign Key fk_ag_login_surveys0
ag_login_surveys references ag_consent ( ag_login_id, participant_name )</title>
</path>
<text x='864' y='925' transform='rotate(0 864,925)' title='Foreign Key fk_ag_login_surveys0
ag_login_surveys references ag_consent ( ag_login_id, participant_name )' style='fill:#a1a0a0;'>ag_login_id,participant_name</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' style='stroke-dasharray:4,2;' d='M 315 1620 L 472,1620 Q 480,1620 480,1612 L 480,1417 Q 480,1410 487,1410 L 495,1410' >
<title>Foreign Key fk_ag_kit_barcodes
ag_kit_barcodes references ag_kit ( ag_kit_id )</title>
</path>
<text x='322' y='1615' transform='rotate(0 322,1615)' title='Foreign Key fk_ag_kit_barcodes
ag_kit_barcodes references ag_kit ( ag_kit_id )' style='fill:#a1a0a0;'>ag_kit_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' style='stroke-dasharray:4,2;' d='M 315 1650 L 1177,1650 Q 1185,1650 1185,1642 L 1185,922 Q 1185,915 1177,915 L 1170,915' >
<title>Foreign Key fk_ag_kit_barcodes_1
ag_kit_barcodes references ag_login_surveys ( survey_id )</title>
</path>
<text x='322' y='1645' transform='rotate(0 322,1645)' title='Foreign Key fk_ag_kit_barcodes_1
ag_kit_barcodes references ag_login_surveys ( survey_id )' style='fill:#a1a0a0;'>survey_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 120 1635 L 52,1635 Q 45,1635 45,1627 L 45,652 Q 45,645 52,645 L 60,645' >
<title>Foreign Key fk_ag_kit_barcodes_barcode
ag_kit_barcodes references barcode ( barcode )</title>
</path>
<text x='78' y='1630' transform='rotate(0 78,1630)' title='Foreign Key fk_ag_kit_barcodes_barcode
ag_kit_barcodes references barcode ( barcode )' style='fill:#a1a0a0;'>barcode</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 855 375 L 847,375 Q 840,375 840,367 L 840,307 Q 840,300 832,300 L 825,300' >
<title>Foreign Key fk_consent_revoked
consent_revoked references ag_login ( ag_login_id )</title>
</path>
<text x='795' y='370' transform='rotate(0 795,370)' title='Foreign Key fk_consent_revoked
consent_revoked references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 1170 810 L 1177,810 Q 1185,810 1185,817 L 1185,907 Q 1185,915 1177,915 L 1170,915' >
<title>Foreign Key fk_promoted_survey_ids
promoted_survey_ids references ag_login_surveys ( survey_id )</title>
</path>
<text x='1177' y='805' transform='rotate(0 1177,805)' title='Foreign Key fk_promoted_survey_ids
promoted_survey_ids references ag_login_surveys ( survey_id )' style='fill:#a1a0a0;'>survey_id</text><path transform='translate(7,0)' marker-start='url(#foot)' d='M 240 2220 L 247,2220 Q 255,2220 255,2212 L 255,2077 Q 255,2070 247,2070 L 240,2070' >
<title>Foreign Key fk_surveys
surveys references survey_group ( survey_group -> group_order )</title>
</path>
<text x='247' y='2215' transform='rotate(0 247,2215)' title='Foreign Key fk_surveys
surveys references survey_group ( survey_group -> group_order )' style='fill:#a1a0a0;'>survey_group</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 1200 300 L 37,300 Q 30,300 30,307 L 30,1117 Q 30,1125 37,1125 L 90,1125' >
<title>Foreign Key fk_ag_hum_surv_to_ag_login
ag_human_survey references ag_login ( ag_login_id )</title>
</path>
<text x='1140' y='295' transform='rotate(0 1140,295)' title='Foreign Key fk_ag_hum_surv_to_ag_login
ag_human_survey references ag_login ( ag_login_id )' style='fill:#a1a0a0;'>ag_login_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 1380 2205 L 1387,2205 Q 1395,2205 1395,2212 L 1395,2317 Q 1395,2325 1387,2325 L 1380,2325' >
<title>Foreign Key fk_labadmin_users_access
labadmin_users_access references labadmin_access ( access_id )</title>
</path>
<text x='1387' y='2200' transform='rotate(0 1387,2200)' title='Foreign Key fk_labadmin_users_access
labadmin_users_access references labadmin_access ( access_id )' style='fill:#a1a0a0;'>access_id</text><path transform='translate(7,0)' marker-start='url(#foot)' marker-end='url(#arrow)' d='M 1215 2220 L 1207,2220 Q 1200,2220 1200,2212 L 1200,2092 Q 1200,2085 1207,2085 L 1230,2085' >
<title>Foreign Key fk_labadmin_users_access_0
labadmin_users_access references labadmin_users ( email )</title>
</path>
<text x='1189' y='2215' transform='rotate(0 1189,2215)' title='Foreign Key fk_labadmin_users_access_0
labadmin_users_access references labadmin_users ( email )' style='fill:#a1a0a0;'>email</text><!-- ============= Table 'ag_survey_answer' ============= -->
<rect class='table' x='75' y='1373' width='150' height='120' rx='7' ry='7' />
<path d='M 75.50 1399.50 L 75.50 1380.50 Q 75.50 1373.50 82.50 1373.50 L 217.50 1373.50 Q 224.50 1373.50 224.50 1380.50 L 224.50 1399.50 L75.50 1399.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#ag_survey_answer'><text x='100' y='1387' class='tableTitle'>ag_survey_answer</text><title>Table ag.ag_survey_answer</title></a>
<use id='nn' x='77' y='1407' xlink:href='#nn'/><a xlink:href='#ag_survey_answer.ag_login_id'><use id='pk' x='77' y='1406' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name, question ) </title></a>
<a xlink:href='#ag_survey_answer.ag_login_id'><text x='93' y='1417'>ag_login_id</text><title>ag_login_id uuid not null</title></a>
<a xlink:href='#ag_survey_answer.ag_login_id'><use id='fk' x='213' y='1406' xlink:href='#fk'/><title>References ag_login ( ag_login_id ) </title></a>
<use id='nn' x='77' y='1422' xlink:href='#nn'/><a xlink:href='#ag_survey_answer.participant_name'><use id='pk' x='77' y='1421' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name, question ) </title></a>
<a xlink:href='#ag_survey_answer.participant_name'><text x='93' y='1432'>participant_name</text><title>participant_name varchar(200) not null</title></a>
<use id='nn' x='77' y='1437' xlink:href='#nn'/><a xlink:href='#ag_survey_answer.question'><use id='pk' x='77' y='1436' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name, question ) </title></a>
<a xlink:href='#ag_survey_answer.question'><text x='93' y='1447'>question</text><title>question varchar(100) not null</title></a>
<a xlink:href='#ag_survey_answer.ag_survery_answer_id'><text x='93' y='1462'>ag_survery_answer_id</text><title>ag_survery_answer_id uuid default ag.uuid_generate_v4()</title></a>
<a xlink:href='#ag_survey_answer.answer'><text x='93' y='1477'>answer</text><title>answer varchar(4000)</title></a>
<!-- ============= Table 'controlled_vocab_values' ============= -->
<rect class='table' x='1035' y='38' width='150' height='120' rx='7' ry='7' />
<path d='M 1035.50 64.50 L 1035.50 45.50 Q 1035.50 38.50 1042.50 38.50 L 1177.50 38.50 Q 1184.50 38.50 1184.50 45.50 L 1184.50 64.50 L1035.50 64.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#controlled_vocab_values'><text x='1043' y='52' class='tableTitle'>controlled_vocab_values</text><title>Table ag.controlled_vocab_values</title></a>
<use id='nn' x='1037' y='72' xlink:href='#nn'/><a xlink:href='#controlled_vocab_values.vocab_value_id'><use id='pk' x='1037' y='71' xlink:href='#pk'/><title>Primary Key ( vocab_value_id ) </title></a>
<a xlink:href='#controlled_vocab_values.vocab_value_id'><text x='1053' y='82'>vocab_value_id</text><title>vocab_value_id bigint not null</title></a>
<use id='nn' x='1037' y='87' xlink:href='#nn'/><a xlink:href='#controlled_vocab_values.controlled_vocab_id'><text x='1053' y='97'>controlled_vocab_id</text><title>controlled_vocab_id bigint not null</title></a>
<a xlink:href='#controlled_vocab_values.controlled_vocab_id'><use id='fk' x='1173' y='86' xlink:href='#fk'/><title>References controlled_vocabs ( controlled_vocab_id ) </title></a>
<use id='nn' x='1037' y='102' xlink:href='#nn'/><a xlink:href='#controlled_vocab_values.term'><text x='1053' y='112'>term</text><title>term varchar(500) not null</title></a>
<a xlink:href='#controlled_vocab_values.order_by'><text x='1053' y='127'>order_by</text><title>order_by bigint</title></a>
<a xlink:href='#controlled_vocab_values.default_item'><text x='1053' y='142'>default_item</text><title>default_item char(1)</title></a>
<!-- ============= Table 'controlled_vocabs' ============= -->
<rect class='table' x='825' y='38' width='150' height='75' rx='7' ry='7' />
<path d='M 825.50 64.50 L 825.50 45.50 Q 825.50 38.50 832.50 38.50 L 967.50 38.50 Q 974.50 38.50 974.50 45.50 L 974.50 64.50 L825.50 64.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#controlled_vocabs'><text x='850' y='52' class='tableTitle'>controlled_vocabs</text><title>Table ag.controlled_vocabs</title></a>
<use id='nn' x='827' y='72' xlink:href='#nn'/><a xlink:href='#controlled_vocabs.controlled_vocab_id'><use id='pk' x='827' y='71' xlink:href='#pk'/><title>Primary Key ( controlled_vocab_id ) </title></a>
<a xlink:href='#controlled_vocabs.controlled_vocab_id'><text x='843' y='82'>controlled_vocab_id</text><title>controlled_vocab_id bigint not null</title></a>
<a xlink:href='#controlled_vocabs.controlled_vocab_id'><use id='ref' x='963' y='71' xlink:href='#ref'/><title>Referred by controlled_vocab_values ( controlled_vocab_id ) </title></a>
<a xlink:href='#controlled_vocabs.vocab_name'><text x='843' y='97'>vocab_name</text><title>vocab_name varchar(500)</title></a>
<!-- ============= Table 'ag_participant_exceptions' ============= -->
<rect class='table' x='480' y='998' width='165' height='75' rx='7' ry='7' />
<path d='M 480.50 1024.50 L 480.50 1005.50 Q 480.50 998.50 487.50 998.50 L 637.50 998.50 Q 644.50 998.50 644.50 1005.50 L 644.50 1024.50 L480.50 1024.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#ag_participant_exceptions'><text x='491' y='1012' class='tableTitle'>ag_participant_exceptions</text><title>Table ag.ag_participant_exceptions</title></a>
<a xlink:href='#ag_participant_exceptions.ag_login_id'><use id='idx' x='482' y='1031' xlink:href='#idx'/><title>Index ( ag_login_id ) </title></a>
<a xlink:href='#ag_participant_exceptions.ag_login_id'><text x='498' y='1042'>ag_login_id</text><title>ag_login_id uuid</title></a>
<a xlink:href='#ag_participant_exceptions.ag_login_id'><use id='fk' x='633' y='1031' xlink:href='#fk'/><title>References ag_login ( ag_login_id ) </title></a>
<a xlink:href='#ag_participant_exceptions.participant_name'><text x='498' y='1057'>participant_name</text><title>participant_name varchar(200)</title></a>
<!-- ============= Table 'ag_animal_survey' ============= -->
<rect class='table' x='285' y='968' width='150' height='345' rx='7' ry='7' />
<path d='M 285.50 994.50 L 285.50 975.50 Q 285.50 968.50 292.50 968.50 L 427.50 968.50 Q 434.50 968.50 434.50 975.50 L 434.50 994.50 L285.50 994.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#ag_animal_survey'><text x='312' y='982' class='tableTitle'>ag_animal_survey</text><title>Table ag.ag_animal_survey</title></a>
<use id='nn' x='287' y='1002' xlink:href='#nn'/><a xlink:href='#ag_animal_survey.ag_login_id'><use id='pk' x='287' y='1001' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name ) </title></a>
<a xlink:href='#ag_animal_survey.ag_login_id'><text x='303' y='1012'>ag_login_id</text><title>ag_login_id uuid not null</title></a>
<a xlink:href='#ag_animal_survey.ag_login_id'><use id='fk' x='423' y='1001' xlink:href='#fk'/><title>References ag_login ( ag_login_id ) </title></a>
<use id='nn' x='287' y='1017' xlink:href='#nn'/><a xlink:href='#ag_animal_survey.participant_name'><use id='pk' x='287' y='1016' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name ) </title></a>
<a xlink:href='#ag_animal_survey.participant_name'><text x='303' y='1027'>participant_name</text><title>participant_name varchar(200) not null</title></a>
<a xlink:href='#ag_animal_survey.type'><text x='303' y='1042'>type</text><title>type varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.origin'><text x='303' y='1057'>origin</text><title>origin varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.age'><text x='303' y='1072'>age</text><title>age varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.gender'><text x='303' y='1087'>gender</text><title>gender varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.setting'><text x='303' y='1102'>setting</text><title>setting varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.weight'><text x='303' y='1117'>weight</text><title>weight varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.diet'><text x='303' y='1132'>diet</text><title>diet varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.food_source_store'><text x='303' y='1147'>food_source_store</text><title>food_source_store varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.food_source_human'><text x='303' y='1162'>food_source_human</text><title>food_source_human varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.food_source_wild'><text x='303' y='1177'>food_source_wild</text><title>food_source_wild varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.food_type'><text x='303' y='1192'>food_type</text><title>food_type varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.organic_food'><text x='303' y='1207'>organic_food</text><title>organic_food varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.grain_free_food'><text x='303' y='1222'>grain_free_food</text><title>grain_free_food varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.living_status'><text x='303' y='1237'>living_status</text><title>living_status varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.outside_time'><text x='303' y='1252'>outside_time</text><title>outside_time varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.toilet'><text x='303' y='1267'>toilet</text><title>toilet varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.coprophage'><text x='303' y='1282'>coprophage</text><title>coprophage varchar(100)</title></a>
<a xlink:href='#ag_animal_survey.comments'><text x='303' y='1297'>comments</text><title>comments varchar(2000)</title></a>
<!-- ============= Table 'ag_survey_multiples' ============= -->
<rect class='table' x='300' y='1433' width='135' height='105' rx='7' ry='7' />
<path d='M 300.50 1459.50 L 300.50 1440.50 Q 300.50 1433.50 307.50 1433.50 L 427.50 1433.50 Q 434.50 1433.50 434.50 1440.50 L 434.50 1459.50 L300.50 1459.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#ag_survey_multiples'><text x='312' y='1447' class='tableTitle'>ag_survey_multiples</text><title>Table ag.ag_survey_multiples</title></a>
<use id='nn' x='302' y='1467' xlink:href='#nn'/><a xlink:href='#ag_survey_multiples.ag_login_id'><use id='pk' x='302' y='1466' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name, item_name ) </title></a>
<a xlink:href='#ag_survey_multiples.ag_login_id'><text x='318' y='1477'>ag_login_id</text><title>ag_login_id uuid not null</title></a>
<a xlink:href='#ag_survey_multiples.ag_login_id'><use id='fk' x='423' y='1466' xlink:href='#fk'/><title>References ag_login ( ag_login_id ) </title></a>
<use id='nn' x='302' y='1482' xlink:href='#nn'/><a xlink:href='#ag_survey_multiples.participant_name'><use id='pk' x='302' y='1481' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name, item_name ) </title></a>
<a xlink:href='#ag_survey_multiples.participant_name'><text x='318' y='1492'>participant_name</text><title>participant_name varchar(200) not null</title></a>
<use id='nn' x='302' y='1497' xlink:href='#nn'/><a xlink:href='#ag_survey_multiples.item_name'><use id='pk' x='302' y='1496' xlink:href='#pk'/><title>Primary Key ( ag_login_id, participant_name, item_name ) </title></a>
<a xlink:href='#ag_survey_multiples.item_name'><text x='318' y='1507'>item_name</text><title>item_name varchar(50) not null</title></a>
<a xlink:href='#ag_survey_multiples.item_value'><text x='318' y='1522'>item_value</text><title>item_value varchar(1000)</title></a>
<!-- ============= Table 'group_questions' ============= -->
<rect class='table' x='330' y='2033' width='135' height='90' rx='7' ry='7' />
<path d='M 330.50 2059.50 L 330.50 2040.50 Q 330.50 2033.50 337.50 2033.50 L 457.50 2033.50 Q 464.50 2033.50 464.50 2040.50 L 464.50 2059.50 L330.50 2059.50 ' style='fill:url(#tableHeaderGradient2); stroke:none;' />
<a xlink:href='#group_questions'><text x='351' y='2047' class='tableTitle'>group_questions</text><title>Table ag.group_questions</title></a>
<use id='nn' x='332' y='2067' xlink:href='#nn'/><a xlink:href='#group_questions.survey_group'><use id='pk' x='332' y='2066' xlink:href='#pk'/><title>Primary Key ( survey_group, survey_question_id ) Index ( survey_group ) Unique Index ( survey_group, display_index ) </title></a>
<a xlink:href='#group_questions.survey_group'><text x='348' y='2077'>survey_group</text><title>survey_group integer not null</title></a>
<a xlink:href='#group_questions.survey_group'><use id='fk' x='453' y='2066' xlink:href='#fk'/><title>References survey_group ( survey_group -> group_order ) </title></a>
<use id='nn' x='332' y='2082' xlink:href='#nn'/><a xlink:href='#group_questions.survey_question_id'><use id='pk' x='332' y='2081' xlink:href='#pk'/><title>Primary Key ( survey_group, survey_question_id ) Index ( survey_question_id ) </title></a>
<a xlink:href='#group_questions.survey_question_id'><text x='348' y='2092'>survey_question_id</text><title>survey_question_id bigint not null</title></a>
<a xlink:href='#group_questions.survey_question_id'><use id='fk' x='453' y='2081' xlink:href='#fk'/><title>References survey_question ( survey_question_id ) </title></a>
<use id='nn' x='332' y='2097' xlink:href='#nn'/><a xlink:href='#group_questions.display_index'><use id='unq' x='332' y='2096' xlink:href='#unq'/><title>Unique Index ( survey_group, display_index ) </title></a>
<a xlink:href='#group_questions.display_index'><text x='348' y='2107'>display_index</text><title>display_index integer not null</title></a>
<!-- ============= Table 'survey_response_types' ============= -->
<rect class='table' x='1020' y='2408' width='150' height='60' rx='7' ry='7' />
<path d='M 1020.50 2434.50 L 1020.50 2415.50 Q 1020.50 2408.50 1027.50 2408.50 L 1162.50 2408.50 Q 1169.50 2408.50 1169.50 2415.50 L 1169.50 2434.50 L1020.50 2434.50 ' style='fill:url(#tableHeaderGradient3); stroke:none;' />
<a xlink:href='#survey_response_types'><text x='1031' y='2422' class='tableTitle'>survey_response_types</text><title>Table ag.survey_response_types
Stores every possible type of response. The response type will be processed in python to determine how the question is represented in the interface.</title></a>
<use id='nn' x='1022' y='2442' xlink:href='#nn'/><a xlink:href='#survey_response_types.survey_response_type'><use id='pk' x='1022' y='2441' xlink:href='#pk'/><title>Primary Key ( survey_response_type ) </title></a>
<a xlink:href='#survey_response_types.survey_response_type'><text x='1038' y='2452'>survey_response_type</text><title>survey_response_type varchar(2147483647) not null</title></a>
<a xlink:href='#survey_response_types.survey_response_type'><use id='ref' x='1158' y='2441' xlink:href='#ref'/><title>Referred by survey_question_response_type ( survey_response_type ) </title></a>
<!-- ============= Table 'survey_group' ============= -->
<rect class='table' x='75' y='2033' width='105' height='90' rx='7' ry='7' />
<path d='M 75.50 2059.50 L 75.50 2040.50 Q 75.50 2033.50 82.50 2033.50 L 172.50 2033.50 Q 179.50 2033.50 179.50 2040.50 L 179.50 2059.50 L75.50 2059.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#survey_group'><text x='90' y='2047' class='tableTitle'>survey_group</text><title>Table ag.survey_group</title></a>
<use id='nn' x='77' y='2067' xlink:href='#nn'/><a xlink:href='#survey_group.group_order'><use id='pk' x='77' y='2066' xlink:href='#pk'/><title>Primary Key ( group_order ) </title></a>
<a xlink:href='#survey_group.group_order'><text x='93' y='2077'>group_order</text><title>group_order integer not null
The order that this group will be displayed in</title></a>
<a xlink:href='#survey_group.group_order'><use id='ref' x='168' y='2066' xlink:href='#ref'/><title>Referred by group_questions ( survey_group -> group_order )
Referred by surveys ( survey_group -> group_order ) </title></a>
<a xlink:href='#survey_group.american'><use id='unq' x='77' y='2081' xlink:href='#unq'/><title>Unique Index ( american ) </title></a>
<a xlink:href='#survey_group.american'><text x='93' y='2092'>american</text><title>american varchar(2147483647)
The american english version of the question group's name</title></a>
<a xlink:href='#survey_group.british'><use id='unq' x='77' y='2096' xlink:href='#unq'/><title>Unique Index ( british ) </title></a>
<a xlink:href='#survey_group.british'><text x='93' y='2107'>british</text><title>british varchar(2147483647)</title></a>
<!-- ============= Table 'survey_answers_other' ============= -->
<rect class='table' x='855' y='983' width='135' height='90' rx='7' ry='7' />
<path d='M 855.50 1009.50 L 855.50 990.50 Q 855.50 983.50 862.50 983.50 L 982.50 983.50 Q 989.50 983.50 989.50 990.50 L 989.50 1009.50 L855.50 1009.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#survey_answers_other'><text x='862' y='997' class='tableTitle'>survey_answers_other</text><title>Table ag.survey_answers_other
Survey answers for which there are no corresponding foreign keys</title></a>
<use id='nn' x='857' y='1017' xlink:href='#nn'/><a xlink:href='#survey_answers_other.survey_id'><use id='pk' x='857' y='1016' xlink:href='#pk'/><title>Primary Key ( survey_id, survey_question_id ) Index ( survey_id ) </title></a>
<a xlink:href='#survey_answers_other.survey_id'><text x='873' y='1027'>survey_id</text><title>survey_id varchar(2147483647) not null</title></a>
<a xlink:href='#survey_answers_other.survey_id'><use id='fk' x='978' y='1016' xlink:href='#fk'/><title>References ag_login_surveys ( survey_id ) </title></a>
<use id='nn' x='857' y='1032' xlink:href='#nn'/><a xlink:href='#survey_answers_other.survey_question_id'><use id='pk' x='857' y='1031' xlink:href='#pk'/><title>Primary Key ( survey_id, survey_question_id ) Index ( survey_question_id ) </title></a>
<a xlink:href='#survey_answers_other.survey_question_id'><text x='873' y='1042'>survey_question_id</text><title>survey_question_id bigint not null</title></a>
<a xlink:href='#survey_answers_other.survey_question_id'><use id='fk' x='978' y='1031' xlink:href='#fk'/><title>References survey_question ( survey_question_id ) </title></a>
<use id='nn' x='857' y='1047' xlink:href='#nn'/><a xlink:href='#survey_answers_other.response'><text x='873' y='1057'>response</text><title>response varchar(2147483647) not null</title></a>
<!-- ============= Table 'survey_question_triggers' ============= -->
<rect class='table' x='675' y='2093' width='150' height='90' rx='7' ry='7' />
<path d='M 675.50 2119.50 L 675.50 2100.50 Q 675.50 2093.50 682.50 2093.50 L 817.50 2093.50 Q 824.50 2093.50 824.50 2100.50 L 824.50 2119.50 L675.50 2119.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#survey_question_triggers'><text x='681' y='2107' class='tableTitle'>survey_question_triggers</text><title>Table ag.survey_question_triggers
Which question/answer combos trigger other questions</title></a>
<a xlink:href='#survey_question_triggers.survey_question_id'><use id='idx' x='677' y='2126' xlink:href='#idx'/><title>Index ( survey_question_id ) Index ( survey_question_id, triggering_response ) </title></a>
<a xlink:href='#survey_question_triggers.survey_question_id'><text x='693' y='2137'>survey_question_id</text><title>survey_question_id bigint
The ID of the question that is triggered</title></a>
<a xlink:href='#survey_question_triggers.survey_question_id'><use id='fk' x='813' y='2126' xlink:href='#fk'/><title>References survey_question_response ( survey_question_id, triggering_response -> response ) </title></a>
<a xlink:href='#survey_question_triggers.triggering_response'><use id='idx' x='677' y='2141' xlink:href='#idx'/><title>Index ( triggering_response ) Index ( triggered_question, triggering_response ) Index ( survey_question_id, triggering_response ) </title></a>
<a xlink:href='#survey_question_triggers.triggering_response'><text x='693' y='2152'>triggering_response</text><title>triggering_response varchar(2147483647)
The response to the question that will cause the appearance of the triggered_question</title></a>
<a xlink:href='#survey_question_triggers.triggering_response'><use id='fk' x='813' y='2141' xlink:href='#fk'/><title>References survey_question_response ( survey_question_id, triggering_response -> response ) </title></a>
<a xlink:href='#survey_question_triggers.triggered_question'><use id='idx' x='677' y='2156' xlink:href='#idx'/><title>Index ( triggered_question ) Index ( triggered_question, triggering_response ) </title></a>
<a xlink:href='#survey_question_triggers.triggered_question'><text x='693' y='2167'>triggered_question</text><title>triggered_question bigint
The question that is triggered</title></a>
<a xlink:href='#survey_question_triggers.triggered_question'><use id='fk' x='813' y='2156' xlink:href='#fk'/><title>References survey_question ( triggered_question -> survey_question_id ) </title></a>
<!-- ============= Table 'survey_response' ============= -->
<rect class='table' x='720' y='2303' width='105' height='75' rx='7' ry='7' />
<path d='M 720.50 2329.50 L 720.50 2310.50 Q 720.50 2303.50 727.50 2303.50 L 817.50 2303.50 Q 824.50 2303.50 824.50 2310.50 L 824.50 2329.50 L720.50 2329.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#survey_response'><text x='726' y='2317' class='tableTitle'>survey_response</text><title>Table ag.survey_response
Stores every possible predictable response on the human survey</title></a>
<use id='nn' x='722' y='2337' xlink:href='#nn'/><a xlink:href='#survey_response.american'><use id='pk' x='722' y='2336' xlink:href='#pk'/><title>Primary Key ( american ) </title></a>
<a xlink:href='#survey_response.american'><text x='738' y='2347'>american</text><title>american varchar(2147483647) not null</title></a>
<a xlink:href='#survey_response.american'><use id='ref' x='813' y='2336' xlink:href='#ref'/><title>Referred by iso_country_lookup ( country -> american )
Referred by survey_question_response ( response -> american ) </title></a>
<a xlink:href='#survey_response.british'><use id='unq' x='722' y='2351' xlink:href='#unq'/><title>Unique Index ( british ) </title></a>
<a xlink:href='#survey_response.british'><text x='738' y='2362'>british</text><title>british varchar(2147483647)</title></a>
<!-- ============= Table 'survey_question_response' ============= -->
<rect class='table' x='720' y='2198' width='165' height='90' rx='7' ry='7' />
<path d='M 720.50 2224.50 L 720.50 2205.50 Q 720.50 2198.50 727.50 2198.50 L 877.50 2198.50 Q 884.50 2198.50 884.50 2205.50 L 884.50 2224.50 L720.50 2224.50 ' style='fill:url(#tableHeaderGradient2); stroke:none;' />
<a xlink:href='#survey_question_response'><text x='730' y='2212' class='tableTitle'>survey_question_response</text><title>Table ag.survey_question_response
Maps questions to responses</title></a>
<use id='nn' x='722' y='2232' xlink:href='#nn'/><a xlink:href='#survey_question_response.survey_question_id'><use id='pk' x='722' y='2231' xlink:href='#pk'/><title>Primary Key ( survey_question_id, response ) Unique Index ( survey_question_id, display_index ) </title></a>
<a xlink:href='#survey_question_response.survey_question_id'><text x='738' y='2242'>survey_question_id</text><title>survey_question_id bigint not null</title></a>
<a xlink:href='#survey_question_response.survey_question_id'><use id='fk' x='873' y='2231' xlink:href='#fk'/><title>References survey_question ( survey_question_id )
Referred by survey_answers ( survey_question_id, response )
Referred by survey_question_triggers ( survey_question_id, triggering_response -> response ) </title></a>
<use id='nn' x='722' y='2247' xlink:href='#nn'/><a xlink:href='#survey_question_response.response'><use id='pk' x='722' y='2246' xlink:href='#pk'/><title>Primary Key ( survey_question_id, response ) </title></a>
<a xlink:href='#survey_question_response.response'><text x='738' y='2257'>response</text><title>response varchar(2147483647) not null</title></a>
<a xlink:href='#survey_question_response.response'><use id='fk' x='873' y='2246' xlink:href='#fk'/><title>References survey_response ( response -> american )
Referred by survey_answers ( survey_question_id, response )
Referred by survey_question_triggers ( survey_question_id, triggering_response -> response ) </title></a>
<use id='nn' x='722' y='2262' xlink:href='#nn'/><a xlink:href='#survey_question_response.display_index'><use id='unq' x='722' y='2261' xlink:href='#unq'/><title>Unique Index ( survey_question_id, display_index ) </title></a>
<a xlink:href='#survey_question_response.display_index'><text x='738' y='2272'>display_index</text><title>display_index serial not null
The display order of this response</title></a>
<!-- ============= Table 'iso_country_lookup' ============= -->
<rect class='table' x='930' y='2288' width='120' height='75' rx='7' ry='7' />
<path d='M 930.50 2314.50 L 930.50 2295.50 Q 930.50 2288.50 937.50 2288.50 L 1042.50 2288.50 Q 1049.50 2288.50 1049.50 2295.50 L 1049.50 2314.50 L930.50 2314.50 ' style='fill:url(#tableHeaderGradient3); stroke:none;' />
<a xlink:href='#iso_country_lookup'><text x='936' y='2302' class='tableTitle'>iso_country_lookup</text><title>Table ag.iso_country_lookup
ISO standard codes for countries</title></a>
<use id='nn' x='932' y='2322' xlink:href='#nn'/><a xlink:href='#iso_country_lookup.iso_code'><use id='pk' x='932' y='2321' xlink:href='#pk'/><title>Primary Key ( iso_code ) </title></a>
<a xlink:href='#iso_country_lookup.iso_code'><text x='948' y='2332'>iso_code</text><title>iso_code varchar(2147483647) not null
The ISO code for the country</title></a>
<use id='nn' x='932' y='2337' xlink:href='#nn'/><a xlink:href='#iso_country_lookup.country'><use id='idx' x='932' y='2336' xlink:href='#idx'/><title>Index ( country ) </title></a>
<a xlink:href='#iso_country_lookup.country'><text x='948' y='2347'>country</text><title>country varchar(2147483647) not null</title></a>
<a xlink:href='#iso_country_lookup.country'><use id='fk' x='1038' y='2336' xlink:href='#fk'/><title>References survey_response ( country -> american ) </title></a>
<!-- ============= Table 'survey_question_response_type' ============= -->
<rect class='table' x='720' y='2393' width='195' height='75' rx='7' ry='7' />
<path d='M 720.50 2419.50 L 720.50 2400.50 Q 720.50 2393.50 727.50 2393.50 L 907.50 2393.50 Q 914.50 2393.50 914.50 2400.50 L 914.50 2419.50 L720.50 2419.50 ' style='fill:url(#tableHeaderGradient2); stroke:none;' />
<a xlink:href='#survey_question_response_type'><text x='730' y='2407' class='tableTitle'>survey_question_response_type</text><title>Table ag.survey_question_response_type
Stores the type of response for each question</title></a>
<a xlink:href='#survey_question_response_type.survey_question_id'><use id='idx' x='722' y='2426' xlink:href='#idx'/><title>Index ( survey_question_id ) </title></a>
<a xlink:href='#survey_question_response_type.survey_question_id'><text x='738' y='2437'>survey_question_id</text><title>survey_question_id bigint</title></a>
<a xlink:href='#survey_question_response_type.survey_question_id'><use id='fk' x='903' y='2426' xlink:href='#fk'/><title>References survey_question ( survey_question_id ) </title></a>
<use id='nn' x='722' y='2442' xlink:href='#nn'/><a xlink:href='#survey_question_response_type.survey_response_type'><use id='idx' x='722' y='2441' xlink:href='#idx'/><title>Index ( survey_response_type ) </title></a>
<a xlink:href='#survey_question_response_type.survey_response_type'><text x='738' y='2452'>survey_response_type</text><title>survey_response_type varchar(2147483647) not null</title></a>
<a xlink:href='#survey_question_response_type.survey_response_type'><use id='fk' x='903' y='2441' xlink:href='#fk'/><title>References survey_response_types ( survey_response_type ) </title></a>
<!-- ============= Table 'zipcodes' ============= -->
<rect class='table' x='1245' y='38' width='120' height='165' rx='7' ry='7' />
<path d='M 1245.50 64.50 L 1245.50 45.50 Q 1245.50 38.50 1252.50 38.50 L 1357.50 38.50 Q 1364.50 38.50 1364.50 45.50 L 1364.50 64.50 L1245.50 64.50 ' style='fill:url(#tableHeaderGradient1); stroke:none;' />
<a xlink:href='#zipcodes'><text x='1281' y='52' class='tableTitle'>zipcodes</text><title>Table ag.zipcodes</title></a>
<use id='nn' x='1247' y='72' xlink:href='#nn'/><a xlink:href='#zipcodes.zipcode'><use id='pk' x='1247' y='71' xlink:href='#pk'/><title>Primary Key ( zipcode ) </title></a>
<a xlink:href='#zipcodes.zipcode'><text x='1263' y='82'>zipcode</text><title>zipcode varchar(2147483647) not null</title></a>
<a xlink:href='#zipcodes.state'><text x='1263' y='97'>state</text><title>state varchar(2147483647)</title></a>
<a xlink:href='#zipcodes.fips_regions'><text x='1263' y='112'>fips_regions</text><title>fips_regions varchar(2147483647)</title></a>
<a xlink:href='#zipcodes.city'><text x='1263' y='127'>city</text><title>city varchar(2147483647)</title></a>
<a xlink:href='#zipcodes.latitude'><text x='1263' y='142'>latitude</text><title>latitude float8</title></a>
<a xlink:href='#zipcodes.longitude'><text x='1263' y='157'>longitude</text><title>longitude float8</title></a>
<a xlink:href='#zipcodes.elevation'><text x='1263' y='172'>elevation</text><title>elevation float8</title></a>
<a xlink:href='#zipcodes.cannot_geocode'><text x='1263' y='187'>cannot_geocode</text><title>cannot_geocode bool</title></a>
<!-- ============= Table 'ag_survey_multiples_backup' ============= -->
<rect class='table' x='390' y='38' width='180' height='105' rx='7' ry='7' />
<path d='M 390.50 64.50 L 390.50 45.50 Q 390.50 38.50 397.50 38.50 L 562.50 38.50 Q 569.50 38.50 569.50 45.50 L 569.50 64.50 L390.50 64.50 ' style='fill:url(#tableHeaderGradient5); stroke:none;' />
<a xlink:href='#ag_survey_multiples_backup'><text x='402' y='52' class='tableTitle'>ag_survey_multiples_backup</text><title>Table ag.ag_survey_multiples_backup</title></a>
<use id='nn' x='392' y='72' xlink:href='#nn'/><a xlink:href='#ag_survey_multiples_backup.ag_login_id'><use id='idx' x='392' y='71' xlink:href='#idx'/><title>Index ( ag_login_id ) </title></a>
<a xlink:href='#ag_survey_multiples_backup.ag_login_id'><text x='408' y='82'>ag_login_id</text><title>ag_login_id uuid not null</title></a>
<a xlink:href='#ag_survey_multiples_backup.participant_name'><use id='idx' x='392' y='86' xlink:href='#idx'/><title>Index ( participant_name ) </title></a>
<a xlink:href='#ag_survey_multiples_backup.participant_name'><text x='408' y='97'>participant_name</text><title>participant_name varchar(200)</title></a>
<use id='nn' x='392' y='102' xlink:href='#nn'/><a xlink:href='#ag_survey_multiples_backup.item_name'><text x='408' y='112'>item_name</text><title>item_name varchar(50) not null</title></a>
<a xlink:href='#ag_survey_multiples_backup.item_value'><text x='408' y='127'>item_value</text><title>item_value varchar(1000)</title></a>
<!-- ============= Table 'ag_import_stats_tmp' ============= -->
<rect class='table' x='615' y='38' width='165' height='225' rx='7' ry='7' />
<path d='M 615.50 64.50 L 615.50 45.50 Q 615.50 38.50 622.50 38.50 L 772.50 38.50 Q 779.50 38.50 779.50 45.50 L 779.50 64.50 L615.50 64.50 ' style='fill:url(#tableHeaderGradient5); stroke:none;' />
<a xlink:href='#ag_import_stats_tmp'><text x='640' y='52' class='tableTitle'>ag_import_stats_tmp</text><title>Table ag.ag_import_stats_tmp</title></a>
<a xlink:href='#ag_import_stats_tmp.tmp_login_count'><text x='633' y='82'>tmp_login_count</text><title>tmp_login_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.tmp_kit_count'><text x='633' y='97'>tmp_kit_count</text><title>tmp_kit_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.tmp_barcode_count'><text x='633' y='112'>tmp_barcode_count</text><title>tmp_barcode_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.before_login_count'><text x='633' y='127'>before_login_count</text><title>before_login_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.before_kit_count'><text x='633' y='142'>before_kit_count</text><title>before_kit_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.before_barcode_count'><text x='633' y='157'>before_barcode_count</text><title>before_barcode_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.after_login_count'><text x='633' y='172'>after_login_count</text><title>after_login_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.after_kit_count'><text x='633' y='187'>after_kit_count</text><title>after_kit_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.after_barcode_count'><text x='633' y='202'>after_barcode_count</text><title>after_barcode_count bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.login_diff'><text x='633' y='217'>login_diff</text><title>login_diff bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.kit_diff'><text x='633' y='232'>kit_diff</text><title>kit_diff bigint</title></a>
<a xlink:href='#ag_import_stats_tmp.barcode_diff'><text x='633' y='247'>barcode_diff</text><title>barcode_diff bigint</title></a>
<!-- ============= Table 'ag_map_markers' ============= -->
<rect class='table' x='255' y='38' width='105' height='120' rx='7' ry='7' />
<path d='M 255.50 64.50 L 255.50 45.50 Q 255.50 38.50 262.50 38.50 L 352.50 38.50 Q 359.50 38.50 359.50 45.50 L 359.50 64.50 L255.50 64.50 ' style='fill:url(#tableHeaderGradient5); stroke:none;' />
<a xlink:href='#ag_map_markers'><text x='261' y='52' class='tableTitle'>ag_map_markers</text><title>Table ag.ag_map_markers</title></a>
<a xlink:href='#ag_map_markers.zipcode'><text x='273' y='82'>zipcode</text><title>zipcode varchar(20)</title></a>
<a xlink:href='#ag_map_markers.latitude'><text x='273' y='97'>latitude</text><title>latitude float8</title></a>
<a xlink:href='#ag_map_markers.longitude'><text x='273' y='112'>longitude</text><title>longitude float8</title></a>
<a xlink:href='#ag_map_markers.marker_color'><text x='273' y='127'>marker_color</text><title>marker_color varchar(10)</title></a>
<a xlink:href='#ag_map_markers.order_by'><text x='273' y='142'>order_by</text><title>order_by bigint</title></a>
<!-- ============= Table 'survey_answers' ============= -->
<rect class='table' x='960' y='1073' width='135' height='90' rx='7' ry='7' />
<path d='M 960.50 1099.50 L 960.50 1080.50 Q 960.50 1073.50 967.50 1073.50 L 1087.50 1073.50 Q 1094.50 1073.50 1094.50 1080.50 L 1094.50 1099.50 L960.50 1099.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#survey_answers'><text x='984' y='1087' class='tableTitle'>survey_answers</text><title>Table ag.survey_answers
Stores answers to questions of type SINGLE and MULTIPLE</title></a>
<use id='nn' x='962' y='1107' xlink:href='#nn'/><a xlink:href='#survey_answers.survey_id'><use id='pk' x='962' y='1106' xlink:href='#pk'/><title>Primary Key ( survey_id, survey_question_id, response ) Index ( survey_id ) </title></a>
<a xlink:href='#survey_answers.survey_id'><text x='978' y='1117'>survey_id</text><title>survey_id varchar(2147483647) not null
The unique identifier for the survey</title></a>
<a xlink:href='#survey_answers.survey_id'><use id='fk' x='1083' y='1106' xlink:href='#fk'/><title>References ag_login_surveys ( survey_id ) </title></a>
<use id='nn' x='962' y='1122' xlink:href='#nn'/><a xlink:href='#survey_answers.survey_question_id'><use id='pk' x='962' y='1121' xlink:href='#pk'/><title>Primary Key ( survey_id, survey_question_id, response ) Index ( survey_question_id, response ) </title></a>
<a xlink:href='#survey_answers.survey_question_id'><text x='978' y='1132'>survey_question_id</text><title>survey_question_id bigint not null
The question being answered</title></a>
<a xlink:href='#survey_answers.survey_question_id'><use id='fk' x='1083' y='1121' xlink:href='#fk'/><title>References survey_question_response ( survey_question_id, response ) </title></a>
<use id='nn' x='962' y='1137' xlink:href='#nn'/><a xlink:href='#survey_answers.response'><use id='pk' x='962' y='1136' xlink:href='#pk'/><title>Primary Key ( survey_id, survey_question_id, response ) Index ( survey_question_id, response ) </title></a>
<a xlink:href='#survey_answers.response'><text x='978' y='1147'>response</text><title>response varchar(2147483647) not null
The answer the question being asked</title></a>
<a xlink:href='#survey_answers.response'><use id='fk' x='1083' y='1136' xlink:href='#fk'/><title>References survey_question_response ( survey_question_id, response ) </title></a>
<!-- ============= Table 'external_survey_answers' ============= -->
<rect class='table' x='990' y='1193' width='150' height='105' rx='7' ry='7' />
<path d='M 990.50 1219.50 L 990.50 1200.50 Q 990.50 1193.50 997.50 1193.50 L 1132.50 1193.50 Q 1139.50 1193.50 1139.50 1200.50 L 1139.50 1219.50 L990.50 1219.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#external_survey_answers'><text x='997' y='1207' class='tableTitle'>external_survey_answers</text><title>Table ag.external_survey_answers
This stores answers to third party surveys in JSON format, keyed to the original survey ID</title></a>
<use id='nn' x='992' y='1227' xlink:href='#nn'/><a xlink:href='#external_survey_answers.survey_id'><use id='pk' x='992' y='1226' xlink:href='#pk'/><title>Primary Key ( survey_id, external_survey_id, pulldown_date ) </title></a>
<a xlink:href='#external_survey_answers.survey_id'><text x='1008' y='1237'>survey_id</text><title>survey_id varchar(2147483647) not null</title></a>
<a xlink:href='#external_survey_answers.survey_id'><use id='fk' x='1128' y='1226' xlink:href='#fk'/><title>References ag_login_surveys ( survey_id ) </title></a>
<use id='nn' x='992' y='1242' xlink:href='#nn'/><a xlink:href='#external_survey_answers.external_survey_id'><use id='pk' x='992' y='1241' xlink:href='#pk'/><title>Primary Key ( survey_id, external_survey_id, pulldown_date ) </title></a>
<a xlink:href='#external_survey_answers.external_survey_id'><text x='1008' y='1252'>external_survey_id</text><title>external_survey_id bigint not null</title></a>
<a xlink:href='#external_survey_answers.external_survey_id'><use id='fk' x='1128' y='1241' xlink:href='#fk'/><title>References external_survey_sources ( external_survey_id ) </title></a>
<use id='nn' x='992' y='1257' xlink:href='#nn'/><a xlink:href='#external_survey_answers.pulldown_date'><use id='pk' x='992' y='1256' xlink:href='#pk'/><title>Primary Key ( survey_id, external_survey_id, pulldown_date ) </title></a>
<a xlink:href='#external_survey_answers.pulldown_date'><text x='1008' y='1267'>pulldown_date</text><title>pulldown_date date not null</title></a>
<use id='nn' x='992' y='1272' xlink:href='#nn'/><a xlink:href='#external_survey_answers.answers'><text x='1008' y='1282'>answers</text><title>answers json not null</title></a>
<!-- ============= Table 'plate' ============= -->
<rect class='table' x='270' y='803' width='120' height='90' rx='7' ry='7' />
<path d='M 270.50 829.50 L 270.50 810.50 Q 270.50 803.50 277.50 803.50 L 382.50 803.50 Q 389.50 803.50 389.50 810.50 L 389.50 829.50 L270.50 829.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#plate'><text x='317' y='817' class='tableTitle'>plate</text><title>Table barcodes.plate</title></a>
<use id='nn' x='272' y='837' xlink:href='#nn'/><a xlink:href='#plate.plate_id'><use id='pk' x='272' y='836' xlink:href='#pk'/><title>Primary Key ( plate_id ) </title></a>
<a xlink:href='#plate.plate_id'><text x='288' y='847'>plate_id</text><title>plate_id bigint not null</title></a>
<a xlink:href='#plate.plate_id'><use id='ref' x='378' y='836' xlink:href='#ref'/><title>Referred by plate_barcode ( plate_id ) </title></a>
<a xlink:href='#plate.plate'><text x='288' y='862'>plate</text><title>plate varchar(50)</title></a>
<a xlink:href='#plate.sequence_date'><text x='288' y='877'>sequence_date</text><title>sequence_date varchar(20)</title></a>
<!-- ============= Table 'project_barcode' ============= -->
<rect class='table' x='300' y='713' width='105' height='75' rx='7' ry='7' />
<path d='M 300.50 739.50 L 300.50 720.50 Q 300.50 713.50 307.50 713.50 L 397.50 713.50 Q 404.50 713.50 404.50 720.50 L 404.50 739.50 L300.50 739.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#project_barcode'><text x='308' y='727' class='tableTitle'>project_barcode</text><title>Table barcodes.project_barcode</title></a>
<use id='nn' x='302' y='747' xlink:href='#nn'/><a xlink:href='#project_barcode.project_id'><use id='pk' x='302' y='746' xlink:href='#pk'/><title>Primary Key ( project_id, barcode ) </title></a>
<a xlink:href='#project_barcode.project_id'><text x='318' y='757'>project_id</text><title>project_id bigint not null</title></a>
<a xlink:href='#project_barcode.project_id'><use id='fk' x='393' y='746' xlink:href='#fk'/><title>References project ( project_id ) </title></a>
<use id='nn' x='302' y='762' xlink:href='#nn'/><a xlink:href='#project_barcode.barcode'><use id='pk' x='302' y='761' xlink:href='#pk'/><title>Primary Key ( project_id, barcode ) </title></a>
<a xlink:href='#project_barcode.barcode'><text x='318' y='772'>barcode</text><title>barcode char(9) not null</title></a>
<a xlink:href='#project_barcode.barcode'><use id='fk' x='393' y='761' xlink:href='#fk'/><title>References barcode ( barcode ) </title></a>
<!-- ============= Table 'plate_barcode' ============= -->
<rect class='table' x='105' y='803' width='90' height='75' rx='7' ry='7' />
<path d='M 105.50 829.50 L 105.50 810.50 Q 105.50 803.50 112.50 803.50 L 187.50 803.50 Q 194.50 803.50 194.50 810.50 L 194.50 829.50 L105.50 829.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#plate_barcode'><text x='112' y='817' class='tableTitle'>plate_barcode</text><title>Table barcodes.plate_barcode</title></a>
<use id='nn' x='107' y='837' xlink:href='#nn'/><a xlink:href='#plate_barcode.plate_id'><use id='idx' x='107' y='836' xlink:href='#idx'/><title>Index ( plate_id ) </title></a>
<a xlink:href='#plate_barcode.plate_id'><text x='123' y='847'>plate_id</text><title>plate_id bigint not null</title></a>
<a xlink:href='#plate_barcode.plate_id'><use id='fk' x='183' y='836' xlink:href='#fk'/><title>References plate ( plate_id ) </title></a>
<use id='nn' x='107' y='852' xlink:href='#nn'/><a xlink:href='#plate_barcode.barcode'><use id='idx' x='107' y='851' xlink:href='#idx'/><title>Index ( barcode ) </title></a>
<a xlink:href='#plate_barcode.barcode'><text x='123' y='862'>barcode</text><title>barcode varchar(2147483647) not null</title></a>
<a xlink:href='#plate_barcode.barcode'><use id='fk' x='183' y='851' xlink:href='#fk'/><title>References barcode ( barcode ) </title></a>
<!-- ============= Table 'external_survey_sources' ============= -->
<rect class='table' x='945' y='1343' width='195' height='105' rx='7' ry='7' />
<path d='M 945.50 1369.50 L 945.50 1350.50 Q 945.50 1343.50 952.50 1343.50 L 1132.50 1343.50 Q 1139.50 1343.50 1139.50 1350.50 L 1139.50 1369.50 L945.50 1369.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#external_survey_sources'><text x='975' y='1357' class='tableTitle'>external_survey_sources</text><title>Table ag.external_survey_sources</title></a>
<use id='nn' x='947' y='1377' xlink:href='#nn'/><a xlink:href='#external_survey_sources.external_survey_id'><use id='pk' x='947' y='1376' xlink:href='#pk'/><title>Primary Key ( external_survey_id ) </title></a>
<a xlink:href='#external_survey_sources.external_survey_id'><text x='963' y='1387'>external_survey_id</text><title>external_survey_id bigserial not null</title></a>
<a xlink:href='#external_survey_sources.external_survey_id'><use id='ref' x='1128' y='1376' xlink:href='#ref'/><title>Referred by external_survey_answers ( external_survey_id ) </title></a>
<use id='nn' x='947' y='1392' xlink:href='#nn'/><a xlink:href='#external_survey_sources.external_survey'><text x='963' y='1402'>external_survey</text><title>external_survey varchar not null</title></a>
<a xlink:href='#external_survey_sources.external_survey_description'><text x='963' y='1417'>external_survey_description</text><title>external_survey_description varchar</title></a>
<use id='nn' x='947' y='1422' xlink:href='#nn'/><a xlink:href='#external_survey_sources.external_survey_url'><text x='963' y='1432'>external_survey_url</text><title>external_survey_url varchar not null</title></a>
<!-- ============= Table 'ag_handout_barcodes' ============= -->
<rect class='table' x='255' y='323' width='150' height='90' rx='7' ry='7' />
<path d='M 255.50 349.50 L 255.50 330.50 Q 255.50 323.50 262.50 323.50 L 397.50 323.50 Q 404.50 323.50 404.50 330.50 L 404.50 349.50 L255.50 349.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#ag_handout_barcodes'><text x='270' y='337' class='tableTitle'>ag_handout_barcodes</text><title>Table ag.ag_handout_barcodes</title></a>
<use id='nn' x='257' y='357' xlink:href='#nn'/><a xlink:href='#ag_handout_barcodes.kit_id'><use id='idx' x='257' y='356' xlink:href='#idx'/><title>Index ( kit_id ) Index ( kit_id ) </title></a>
<a xlink:href='#ag_handout_barcodes.kit_id'><text x='273' y='367'>kit_id</text><title>kit_id varchar not null</title></a>
<a xlink:href='#ag_handout_barcodes.kit_id'><use id='fk' x='393' y='356' xlink:href='#fk'/><title>References ag_handout_kits ( kit_id ) </title></a>
<use id='nn' x='257' y='372' xlink:href='#nn'/><a xlink:href='#ag_handout_barcodes.sample_barcode_file'><text x='273' y='382'>sample_barcode_file</text><title>sample_barcode_file varchar(13) not null</title></a>
<use id='nn' x='257' y='387' xlink:href='#nn'/><a xlink:href='#ag_handout_barcodes.barcode'><use id='pk' x='257' y='386' xlink:href='#pk'/><title>Primary Key ( barcode ) </title></a>
<a xlink:href='#ag_handout_barcodes.barcode'><text x='273' y='397'>barcode</text><title>barcode varchar(9) not null</title></a>
<a xlink:href='#ag_handout_barcodes.barcode'><use id='fk' x='393' y='386' xlink:href='#fk'/><title>References barcode ( barcode ) </title></a>
<!-- ============= Table 'barcode_exceptions' ============= -->
<rect class='table' x='90' y='533' width='120' height='60' rx='7' ry='7' />
<path d='M 90.50 559.50 L 90.50 540.50 Q 90.50 533.50 97.50 533.50 L 202.50 533.50 Q 209.50 533.50 209.50 540.50 L 209.50 559.50 L90.50 559.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#barcode_exceptions'><text x='95' y='547' class='tableTitle'>barcode_exceptions</text><title>Table barcodes.barcode_exceptions</title></a>
<use id='nn' x='92' y='567' xlink:href='#nn'/><a xlink:href='#barcode_exceptions.barcode'><use id='pk' x='92' y='566' xlink:href='#pk'/><title>Primary Key ( barcode ) </title></a>
<a xlink:href='#barcode_exceptions.barcode'><text x='108' y='577'>barcode</text><title>barcode varchar(100) not null</title></a>
<a xlink:href='#barcode_exceptions.barcode'><use id='fk' x='198' y='566' xlink:href='#fk'/><title>References barcode ( barcode ) </title></a>
<!-- ============= Table 'project' ============= -->
<rect class='table' x='315' y='623' width='90' height='75' rx='7' ry='7' />
<path d='M 315.50 649.50 L 315.50 630.50 Q 315.50 623.50 322.50 623.50 L 397.50 623.50 Q 404.50 623.50 404.50 630.50 L 404.50 649.50 L315.50 649.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#project'><text x='341' y='637' class='tableTitle'>project</text><title>Table barcodes.project</title></a>
<use id='nn' x='317' y='657' xlink:href='#nn'/><a xlink:href='#project.project_id'><use id='pk' x='317' y='656' xlink:href='#pk'/><title>Primary Key ( project_id ) </title></a>
<a xlink:href='#project.project_id'><text x='333' y='667'>project_id</text><title>project_id bigint not null</title></a>
<a xlink:href='#project.project_id'><use id='ref' x='393' y='656' xlink:href='#ref'/><title>Referred by project_barcode ( project_id ) </title></a>
<a xlink:href='#project.project'><text x='333' y='682'>project</text><title>project varchar(1000)</title></a>
<!-- ============= Table 'barcode' ============= -->
<rect class='table' x='75' y='608' width='165' height='180' rx='7' ry='7' />
<path d='M 75.50 634.50 L 75.50 615.50 Q 75.50 608.50 82.50 608.50 L 232.50 608.50 Q 239.50 608.50 239.50 615.50 L 239.50 634.50 L75.50 634.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#barcode'><text x='135' y='622' class='tableTitle'>barcode</text><title>Table barcodes.barcode</title></a>
<use id='nn' x='77' y='642' xlink:href='#nn'/><a xlink:href='#barcode.barcode'><use id='pk' x='77' y='641' xlink:href='#pk'/><title>Primary Key ( barcode ) </title></a>
<a xlink:href='#barcode.barcode'><text x='93' y='652'>barcode</text><title>barcode varchar(2147483647) not null</title></a>
<a xlink:href='#barcode.barcode'><use id='ref' x='228' y='641' xlink:href='#ref'/><title>Referred by ag_handout_barcodes ( barcode )
Referred by ag_kit_barcodes ( barcode )
Referred by barcode_exceptions ( barcode )
Referred by plate_barcode ( barcode )
Referred by project_barcode ( barcode ) </title></a>
<a xlink:href='#barcode.assigned_on'><text x='93' y='667'>assigned_on</text><title>assigned_on timestamp
date barcode assigned to a project</title></a>
<a xlink:href='#barcode.status'><text x='93' y='682'>status</text><title>status varchar(100)</title></a>
<a xlink:href='#barcode.scan_date'><text x='93' y='697'>scan_date</text><title>scan_date date</title></a>
<a xlink:href='#barcode.sample_postmark_date'><text x='93' y='712'>sample_postmark_date</text><title>sample_postmark_date date</title></a>
<a xlink:href='#barcode.biomass_remaining'><text x='93' y='727'>biomass_remaining</text><title>biomass_remaining varchar(1)</title></a>
<a xlink:href='#barcode.sequencing_status'><text x='93' y='742'>sequencing_status</text><title>sequencing_status varchar(20)</title></a>
<a xlink:href='#barcode.obsolete'><text x='93' y='757'>obsolete</text><title>obsolete varchar(1)</title></a>
<use id='nn' x='77' y='762' xlink:href='#nn'/><a xlink:href='#barcode.create_date_time'><text x='93' y='772'>create_date_time</text><title>create_date_time timestamp not null default current_timestamp
Date barcode created on the system</title></a>
<!-- ============= Table 'survey_question' ============= -->
<rect class='table' x='450' y='2198' width='150' height='120' rx='7' ry='7' />
<path d='M 450.50 2224.50 L 450.50 2205.50 Q 450.50 2198.50 457.50 2198.50 L 592.50 2198.50 Q 599.50 2198.50 599.50 2205.50 L 599.50 2224.50 L450.50 2224.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#survey_question'><text x='480' y='2212' class='tableTitle'>survey_question</text><title>Table ag.survey_question
Stores the human survey questions</title></a>
<use id='nn' x='452' y='2232' xlink:href='#nn'/><a xlink:href='#survey_question.survey_question_id'><use id='pk' x='452' y='2231' xlink:href='#pk'/><title>Primary Key ( survey_question_id ) </title></a>
<a xlink:href='#survey_question.survey_question_id'><text x='468' y='2242'>survey_question_id</text><title>survey_question_id bigint not null
The unique question ID</title></a>
<a xlink:href='#survey_question.survey_question_id'><use id='ref' x='588' y='2231' xlink:href='#ref'/><title>Referred by group_questions ( survey_question_id )
Referred by survey_answers_other ( survey_question_id )
Referred by survey_question_response ( survey_question_id )
Referred by survey_question_response_type ( survey_question_id )
Referred by survey_question_triggers ( triggered_question -> survey_question_id ) </title></a>
<a xlink:href='#survey_question.retired'><text x='468' y='2257'>retired</text><title>retired bool default 'F'
Whether the question is shown or not</title></a>
<use id='nn' x='452' y='2262' xlink:href='#nn'/><a xlink:href='#survey_question.question_shortname'><use id='unq' x='452' y='2261' xlink:href='#unq'/><title>Unique Index ( question_shortname ) </title></a>
<a xlink:href='#survey_question.question_shortname'><text x='468' y='2272'>question_shortname</text><title>question_shortname varchar(100) not null
A QIIME mapping file-compatible header that describes the question and can be used for metadata pulldown</title></a>
<a xlink:href='#survey_question.american'><use id='unq' x='452' y='2276' xlink:href='#unq'/><title>Unique Index ( american ) </title></a>
<a xlink:href='#survey_question.american'><text x='468' y='2287'>american</text><title>american varchar(2147483647)
The american english version of the question</title></a>
<a xlink:href='#survey_question.british'><use id='unq' x='452' y='2291' xlink:href='#unq'/><title>Unique Index ( british ) </title></a>
<a xlink:href='#survey_question.british'><text x='468' y='2302'>british</text><title>british varchar(2147483647)
The british english version of the question</title></a>
<!-- ============= Table 'ag_handout_kits' ============= -->
<rect class='table' x='60' y='323' width='135' height='135' rx='7' ry='7' />
<path d='M 60.50 349.50 L 60.50 330.50 Q 60.50 323.50 67.50 323.50 L 187.50 323.50 Q 194.50 323.50 194.50 330.50 L 194.50 349.50 L60.50 349.50 ' style='fill:url(#tableHeaderGradient4); stroke:none;' />
<a xlink:href='#ag_handout_kits'><text x='83' y='337' class='tableTitle'>ag_handout_kits</text><title>Table ag.ag_handout_kits</title></a>
<use id='nn' x='62' y='357' xlink:href='#nn'/><a xlink:href='#ag_handout_kits.kit_id'><use id='pk' x='62' y='356' xlink:href='#pk'/><title>Primary Key ( kit_id ) </title></a>
<a xlink:href='#ag_handout_kits.kit_id'><text x='78' y='367'>kit_id</text><title>kit_id varchar(9) not null</title></a>
<a xlink:href='#ag_handout_kits.kit_id'><use id='ref' x='183' y='356' xlink:href='#ref'/><title>Referred by ag_handout_barcodes ( kit_id ) </title></a>
<a xlink:href='#ag_handout_kits.password'><text x='78' y='382'>password</text><title>password varchar(60)</title></a>
<a xlink:href='#ag_handout_kits.verification_code'><text x='78' y='397'>verification_code</text><title>verification_code varchar(5)</title></a>
<a xlink:href='#ag_handout_kits.swabs_per_kit'><text x='78' y='412'>swabs_per_kit</text><title>swabs_per_kit bigint</title></a>
<use id='nn' x='62' y='417' xlink:href='#nn'/><a xlink:href='#ag_handout_kits.print_results'><text x='78' y='427'>print_results</text><title>print_results bool not null default 'FALSE'</title></a>
<use id='nn' x='62' y='432' xlink:href='#nn'/><a xlink:href='#ag_handout_kits.created_on'><text x='78' y='442'>created_on</text><title>created_on timestamp not null default current_timestamp</title></a>
<!-- ============= Table 'ag_kit' ============= -->
<rect class='table' x='510' y='1373' width='165' height='240' rx='7' ry='7' />
<path d='M 510.50 1399.50 L 510.50 1380.50 Q 510.50 1373.50 517.50 1373.50 L 667.50 1373.50 Q 674.50 1373.50 674.50 1380.50 L 674.50 1399.50 L510.50 1399.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#ag_kit'><text x='576' y='1387' class='tableTitle'>ag_kit</text><title>Table ag.ag_kit</title></a>
<use id='nn' x='512' y='1407' xlink:href='#nn'/><a xlink:href='#ag_kit.ag_kit_id'><use id='pk' x='512' y='1406' xlink:href='#pk'/><title>Primary Key ( ag_kit_id ) </title></a>
<a xlink:href='#ag_kit.ag_kit_id'><text x='528' y='1417'>ag_kit_id</text><title>ag_kit_id uuid not null default ag.uuid_generate_v4()</title></a>
<a xlink:href='#ag_kit.ag_kit_id'><use id='ref' x='663' y='1406' xlink:href='#ref'/><title>Referred by ag_kit_barcodes ( ag_kit_id ) </title></a>
<use id='nn' x='512' y='1422' xlink:href='#nn'/><a xlink:href='#ag_kit.ag_login_id'><use id='idx' x='512' y='1421' xlink:href='#idx'/><title>Index ( ag_login_id ) </title></a>
<a xlink:href='#ag_kit.ag_login_id'><text x='528' y='1432'>ag_login_id</text><title>ag_login_id uuid not null</title></a>
<a xlink:href='#ag_kit.ag_login_id'><use id='fk' x='663' y='1421' xlink:href='#fk'/><title>References ag_login ( ag_login_id ) </title></a>
<use id='nn' x='512' y='1437' xlink:href='#nn'/><a xlink:href='#ag_kit.supplied_kit_id'><use id='unq' x='512' y='1436' xlink:href='#unq'/><title>Unique Index ( supplied_kit_id ) </title></a>
<a xlink:href='#ag_kit.supplied_kit_id'><text x='528' y='1447'>supplied_kit_id</text><title>supplied_kit_id varchar(50) not null</title></a>
<a xlink:href='#ag_kit.kit_password'><text x='528' y='1462'>kit_password</text><title>kit_password varchar(60)</title></a>
<use id='nn' x='512' y='1467' xlink:href='#nn'/><a xlink:href='#ag_kit.swabs_per_kit'><text x='528' y='1477'>swabs_per_kit</text><title>swabs_per_kit bigint not null</title></a>
<a xlink:href='#ag_kit.kit_verification_code'><text x='528' y='1492'>kit_verification_code</text><title>kit_verification_code varchar(50)</title></a>
<a xlink:href='#ag_kit.kit_verified'><text x='528' y='1507'>kit_verified</text><title>kit_verified char(1) default 'n'::bpchar</title></a>
<a xlink:href='#ag_kit.verification_email_sent'><text x='528' y='1522'>verification_email_sent</text><title>verification_email_sent char(1) default 'n'::bpchar</title></a>
<a xlink:href='#ag_kit.pass_reset_code'><text x='528' y='1537'>pass_reset_code</text><title>pass_reset_code varchar(20)</title></a>
<a xlink:href='#ag_kit.pass_reset_time'><text x='528' y='1552'>pass_reset_time</text><title>pass_reset_time timestamp</title></a>
<use id='nn' x='512' y='1557' xlink:href='#nn'/><a xlink:href='#ag_kit.print_results'><text x='528' y='1567'>print_results</text><title>print_results bool not null default 'FALSE'</title></a>
<a xlink:href='#ag_kit.open_humans_token'><text x='528' y='1582'>open_humans_token</text><title>open_humans_token varchar(64)
The Open Humans access token corresponding to the Open Humans user that has authorized data sharing with this kit.</title></a>
<a xlink:href='#ag_kit.registered_on'><text x='528' y='1597'>registered_on</text><title>registered_on timestamp default current_timestamp</title></a>
<!-- ============= Table 'duplicate_consents' ============= -->
<rect class='table' x='825' y='863' width='150' height='90' rx='7' ry='7' />
<path d='M 825.50 889.50 L 825.50 870.50 Q 825.50 863.50 832.50 863.50 L 967.50 863.50 Q 974.50 863.50 974.50 870.50 L 974.50 889.50 L825.50 889.50 ' style='fill:url(#tableHeaderGradient6); stroke:none;' />
<a xlink:href='#duplicate_consents'><text x='848' y='877' class='tableTitle'>duplicate_consents</text><title>Table ag.duplicate_consents</title></a>
<use id='nn' x='827' y='897' xlink:href='#nn'/><a xlink:href='#duplicate_consents.ag_login_id'><use id='pk' x='827' y='896' xlink:href='#pk'/><title>Index ( ag_login_id ) Primary Key ( ag_login_id, main_survey_id, duplicate_survey_id ) </title></a>
<a xlink:href='#duplicate_consents.ag_login_id'><text x='843' y='907'>ag_login_id</text><title>ag_login_id uuid not null</title></a>
<use id='nn' x='827' y='912' xlink:href='#nn'/><a xlink:href='#duplicate_consents.main_survey_id'><use id='pk' x='827' y='911' xlink:href='#pk'/><title>Index ( main_survey_id ) Primary Key ( ag_login_id, main_survey_id, duplicate_survey_id ) </title></a>
<a xlink:href='#duplicate_consents.main_survey_id'><text x='843' y='922'>main_survey_id</text><title>main_survey_id varchar not null</title></a>
<use id='nn' x='827' y='927' xlink:href='#nn'/><a xlink:href='#duplicate_consents.duplicate_survey_id'><use id='pk' x='827' y='926' xlink:href='#pk'/><title>Unique Index ( duplicate_survey_id ) Primary Key ( ag_login_id, main_survey_id, duplicate_survey_id ) </title></a>
<a xlink:href='#duplicate_consents.duplicate_survey_id'><text x='843' y='937'>duplicate_survey_id</text><title>duplicate_survey_id varchar not null</title></a>
<!-- ============= Table 'ag_login' ============= -->
<rect class='table' x='105' y='1088' width='120' height='225' rx='7' ry='7' />
<path d='M 105.50 1114.50 L 105.50 1095.50 Q 105.50 1088.50 112.50 1088.50 L 217.50 1088.50 Q 224.50 1088.50 224.50 1095.50 L 224.50 1114.50 L105.50 1114.50 ' style='fill:url(#tableHeaderGradient0); stroke:none;' />
<a xlink:href='#ag_login'><text x='142' y='1102' class='tableTitle'>ag_login</text><title>Table ag.ag_login</title></a>
<use id='nn' x='107' y='1122' xlink:href='#nn'/><a xlink:href='#ag_login.ag_login_id'><use id='pk' x='107' y='1121' xlink:href='#pk'/><title>Primary Key ( ag_login_id ) </title></a>
<a xlink:href='#ag_login.ag_login_id'><text x='123' y='1132'>ag_login_id</text><title>ag_login_id uuid not null default ag.uuid_generate_v4()</title></a>
<a xlink:href='#ag_login.ag_login_id'><use id='ref' x='213' y='1121' xlink:href='#ref'/><title>Referred by ag_animal_survey ( ag_login_id )
Referred by ag_consent ( ag_login_id )
Referred by ag_human_survey ( ag_login_id )
Referred by ag_kit ( ag_login_id )
Referred by ag_login_surveys ( ag_login_id )
Referred by ag_participant_exceptions ( ag_login_id )
Referred by ag_survey_answer ( ag_login_id )
Referred by ag_survey_multiples ( ag_login_id )
Referred by consent_revoked ( ag_login_id ) </title></a>
<a xlink:href='#ag_login.email'><text x='123' y='1147'>email</text><title>email varchar(100)</title></a>