Project

General

Profile

« Previous | Next » 

Revision 11111

schemas/VegCore/ERD/VegCore.ERD.mwb: specimen: removed separate fkey to individual because this is linked to from individual_observation

View differences:

schemas/VegCore/ERD/document.mwb.xml
6368 6368
                      <value type="string" key="oldName">id</value>
6369 6369
                      <link type="object" struct-name="GrtObject" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link>
6370 6370
                    </value>
6371
                    <value type="object" struct-name="db.mysql.Column" id="6ec4aa86-ad05-11e2-b309-080027bcf912" struct-checksum="0x783b5183">
6372
                      <value type="int" key="autoIncrement">0</value>
6373
                      <value type="string" key="characterSetName"></value>
6374
                      <value _ptr_="0xbb261a8" type="list" content-type="object" content-struct-name="db.CheckConstraint" key="checks"/>
6375
                      <value type="string" key="collationName"></value>
6376
                      <value type="string" key="datatypeExplicitParams"></value>
6377
                      <value type="string" key="defaultValue"></value>
6378
                      <value type="int" key="defaultValueIsNull">1</value>
6379
                      <value _ptr_="0xbb26508" type="list" content-type="string" key="flags"/>
6380
                      <value type="int" key="isNotNull">0</value>
6381
                      <value type="int" key="length">767</value>
6382
                      <value type="int" key="precision">-1</value>
6383
                      <value type="int" key="scale">-1</value>
6384
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
6385
                      <value type="string" key="comment"></value>
6386
                      <value type="string" key="name">individual</value>
6387
                      <value type="string" key="oldName">individual</value>
6388
                      <link type="object" struct-name="GrtObject" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link>
6389
                    </value>
6390 6371
                    <value type="object" struct-name="db.mysql.Column" id="7cd35394-1168-11e3-8d7f-080027bcf912" struct-checksum="0x783b5183">
6391 6372
                      <value type="int" key="autoIncrement">0</value>
6392 6373
                      <value type="string" key="characterSetName"></value>
......
6401 6382
                      <value type="int" key="precision">-1</value>
6402 6383
                      <value type="int" key="scale">-1</value>
6403 6384
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
6404
                      <value type="string" key="comment">stores observations about the plant the specimen was collected from. some specimens may not be traceable to a reobservable individual, but will still have these plant observations. the collection_event should be set to this field when provided.</value>
6385
                      <value type="string" key="comment">the plant the specimen was collected from and any observations about it. the collection_event should be set to this field when provided.</value>
6405 6386
                      <value type="string" key="name">individual_observation</value>
6406 6387
                      <value type="string" key="oldName">individual_observation</value>
6407 6388
                      <link type="object" struct-name="GrtObject" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link>
......
6420 6401
                      <value type="int" key="precision">-1</value>
6421 6402
                      <value type="int" key="scale">-1</value>
6422 6403
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
6423
                      <value type="string" key="comment">can also be within the individual_observation if no reobservable individual is available</value>
6404
                      <value type="string" key="comment"></value>
6424 6405
                      <value type="string" key="name">code_in_individual</value>
6425 6406
                      <value type="string" key="oldName">code_in_individual</value>
6426 6407
                      <link type="object" struct-name="GrtObject" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link>
......
6688 6669
                      <value type="string" key="name">fk_specimen_organization3</value>
6689 6670
                      <value type="string" key="oldName">fk_specimen_organization3</value>
6690 6671
                    </value>
6691
                    <value type="object" struct-name="db.mysql.ForeignKey" id="6ec4a89c-ad05-11e2-b309-080027bcf912" struct-checksum="0x70a8fc40">
6692
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">be8e3ecc-a6e0-11e2-95e9-080027bcf912</link>
6693
                      <value _ptr_="0xbb2aa58" type="list" content-type="object" content-struct-name="db.Column" key="columns">
6694
                        <link type="object">6ec4aa86-ad05-11e2-b309-080027bcf912</link>
6695
                      </value>
6696
                      <value type="int" key="deferability">0</value>
6697
                      <value type="string" key="deleteRule">CASCADE</value>
6698
                      <link type="object" struct-name="db.Index" key="index">6ec4c2fa-ad05-11e2-b309-080027bcf912</link>
6699
                      <value type="int" key="mandatory">1</value>
6700
                      <value type="int" key="many">1</value>
6701
                      <value type="int" key="modelOnly">0</value>
6702
                      <link type="object" struct-name="db.Table" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link>
6703
                      <value _ptr_="0xbb2ade0" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
6704
                        <link type="object">be8e4142-a6e0-11e2-95e9-080027bcf912</link>
6705
                      </value>
6706
                      <value type="int" key="referencedMandatory">0</value>
6707
                      <value type="string" key="updateRule">CASCADE</value>
6708
                      <value type="string" key="comment"></value>
6709
                      <value type="string" key="name">fk_specimen_individual1</value>
6710
                      <value type="string" key="oldName">fk_specimen_individual1</value>
6711
                    </value>
6712 6672
                    <value type="object" struct-name="db.mysql.ForeignKey" id="c6731a52-a7a0-11e2-b667-080027bcf912" struct-checksum="0x70a8fc40">
6713 6673
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">c672a8d8-a7a0-11e2-b667-080027bcf912</link>
6714 6674
                      <value _ptr_="0xbb2ae50" type="list" content-type="object" content-struct-name="db.Column" key="columns">
......
6778 6738
                    </value>
6779 6739
                    <value type="object" struct-name="db.mysql.Index" id="415f1a26-ad15-11e2-9617-080027bcf912" struct-checksum="0x309b847a">
6780 6740
                      <value _ptr_="0xbb2ba40" type="list" content-type="object" content-struct-name="db.mysql.IndexColumn" key="columns">
6781
                        <value type="object" struct-name="db.mysql.IndexColumn" id="45c9dca4-ad15-11e2-9617-080027bcf912" struct-checksum="0x62630b3c">
6741
                        <value type="object" struct-name="db.mysql.IndexColumn" id="1858529c-298d-11e3-a80d-080027bcf912" struct-checksum="0x62630b3c">
6782 6742
                          <value type="int" key="columnLength">0</value>
6783 6743
                          <value type="string" key="comment"></value>
6784 6744
                          <value type="int" key="descend">0</value>
6785
                          <link type="object" struct-name="db.Column" key="referencedColumn">6ec4aa86-ad05-11e2-b309-080027bcf912</link>
6745
                          <link type="object" struct-name="db.Column" key="referencedColumn">7cd35394-1168-11e3-8d7f-080027bcf912</link>
6786 6746
                          <value type="string" key="name"></value>
6787 6747
                          <link type="object" struct-name="GrtObject" key="owner">415f1a26-ad15-11e2-9617-080027bcf912</link>
6788 6748
                        </value>
6789
                        <value type="object" struct-name="db.mysql.IndexColumn" id="46306e38-ad15-11e2-9617-080027bcf912" struct-checksum="0x62630b3c">
6749
                        <value type="object" struct-name="db.mysql.IndexColumn" id="18adc2f4-298d-11e3-a80d-080027bcf912" struct-checksum="0x62630b3c">
6790 6750
                          <value type="int" key="columnLength">0</value>
6791 6751
                          <value type="string" key="comment"></value>
6792 6752
                          <value type="int" key="descend">0</value>
......
6938 6898
                      <value type="string" key="oldName">fk_specimen_taxon_observation1_idx</value>
6939 6899
                      <link type="object" struct-name="GrtObject" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link>
6940 6900
                    </value>
6941
                    <value type="object" struct-name="db.mysql.Index" id="6ec4c2fa-ad05-11e2-b309-080027bcf912" struct-checksum="0x309b847a">
6942
                      <value _ptr_="0xbb2ed28" type="list" content-type="object" content-struct-name="db.mysql.IndexColumn" key="columns">
6943
                        <value type="object" struct-name="db.mysql.IndexColumn" id="6ec4c4e4-ad05-11e2-b309-080027bcf912" struct-checksum="0x62630b3c">
6944
                          <value type="int" key="columnLength">0</value>
6945
                          <value type="string" key="comment"></value>
6946
                          <value type="int" key="descend">0</value>
6947
                          <link type="object" struct-name="db.Column" key="referencedColumn">6ec4aa86-ad05-11e2-b309-080027bcf912</link>
6948
                          <value type="string" key="name"></value>
6949
                          <link type="object" struct-name="GrtObject" key="owner">6ec4c2fa-ad05-11e2-b309-080027bcf912</link>
6950
                        </value>
6951
                      </value>
6952
                      <value type="string" key="indexKind"></value>
6953
                      <value type="int" key="keyBlockSize">0</value>
6954
                      <value type="string" key="withParser"></value>
6955
                      <value type="string" key="comment"></value>
6956
                      <value type="int" key="deferability">0</value>
6957
                      <value type="string" key="indexType">INDEX</value>
6958
                      <value type="int" key="isPrimary">0</value>
6959
                      <value type="string" key="name">fk_specimen_individual1_idx</value>
6960
                      <value type="int" key="unique">0</value>
6961
                      <value type="string" key="oldName">fk_specimen_individual1_idx</value>
6962
                      <link type="object" struct-name="GrtObject" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link>
6963
                    </value>
6964 6901
                    <value type="object" struct-name="db.mysql.Index" id="c6612660-ad10-11e2-b309-080027bcf912" struct-checksum="0x309b847a">
6965 6902
                      <value _ptr_="0xbb2f408" type="list" content-type="object" content-struct-name="db.mysql.IndexColumn" key="columns">
6966 6903
                        <value type="object" struct-name="db.mysql.IndexColumn" id="c6615c2a-ad10-11e2-b309-080027bcf912" struct-checksum="0x62630b3c">
......
7115 7052
                  <value type="int" key="commentedOut">0</value>
7116 7053
                  <value type="string" key="createDate">2013-04-17 13:52</value>
7117 7054
                  <value _ptr_="0xbb25830" type="dict" key="customData"/>
7118
                  <value type="string" key="lastChangeDate">2013-09-12 14:39</value>
7055
                  <value type="string" key="lastChangeDate">2013-09-29 21:59</value>
7119 7056
                  <value type="int" key="modelOnly">0</value>
7120 7057
                  <value type="string" key="name">specimen</value>
7121 7058
                  <link type="object" struct-name="GrtNamedObject" key="owner">be8cb246-a6e0-11e2-95e9-080027bcf912</link>
......
14020 13957
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
14021 13958
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
14022 13959
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">be8e8fe4-a6e0-11e2-95e9-080027bcf912</link>
14023
                <value type="real" key="middleSegmentOffset">0.e+00</value>
13960
                <value type="real" key="middleSegmentOffset">3.90771711451158125782967545092105865478515625e+01</value>
14024 13961
                <value type="real" key="startCaptionXOffs">0.e+00</value>
14025 13962
                <value type="real" key="startCaptionYOffs">0.e+00</value>
14026 13963
                <value type="int" key="drawSplit">0</value>
......
14062 13999
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
14063 14000
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
14064 14001
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">f62bfaf6-a797-11e2-8681-080027bcf912</link>
14065
                <value type="real" key="middleSegmentOffset">0.e+00</value>
14002
                <value type="real" key="middleSegmentOffset">4.7385129099081240156010608188807964324951171875e+01</value>
14066 14003
                <value type="real" key="startCaptionXOffs">0.e+00</value>
14067 14004
                <value type="real" key="startCaptionYOffs">0.e+00</value>
14068 14005
                <value type="int" key="drawSplit">0</value>
......
14104 14041
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
14105 14042
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
14106 14043
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">c6731a52-a7a0-11e2-b667-080027bcf912</link>
14107
                <value type="real" key="middleSegmentOffset">-8.18454423994435273925773799419403076171875e+01</value>
14044
                <value type="real" key="middleSegmentOffset">-6.4537640701352842143023735843598842620849609375e+01</value>
14108 14045
                <value type="real" key="startCaptionXOffs">0.e+00</value>
14109 14046
                <value type="real" key="startCaptionYOffs">0.e+00</value>
14110 14047
                <value type="int" key="drawSplit">0</value>
......
14324 14261
                <value type="int" key="visible">1</value>
14325 14262
                <value type="string" key="name"></value>
14326 14263
              </value>
14327
              <value type="object" struct-name="workbench.physical.Connection" id="6ec4cc14-ad05-11e2-b309-080027bcf912" struct-checksum="0x9baebc92">
14328
                <value type="string" key="caption">fk_specimen_individual1</value>
14329
                <value type="real" key="captionXOffs">0.e+00</value>
14330
                <value type="real" key="captionYOffs">0.e+00</value>
14331
                <value type="string" key="comment"></value>
14332
                <value type="real" key="endCaptionXOffs">0.e+00</value>
14333
                <value type="real" key="endCaptionYOffs">0.e+00</value>
14334
                <value type="string" key="extraCaption"></value>
14335
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
14336
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
14337
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">6ec4a89c-ad05-11e2-b309-080027bcf912</link>
14338
                <value type="real" key="middleSegmentOffset">2.9693486495881046494105248712003231048583984375e+01</value>
14339
                <value type="real" key="startCaptionXOffs">0.e+00</value>
14340
                <value type="real" key="startCaptionYOffs">0.e+00</value>
14341
                <value type="int" key="drawSplit">0</value>
14342
                <link type="object" struct-name="model.Figure" key="endFigure">793D3016-8986-43EC-A4BD-1926D93F12C5</link>
14343
                <link type="object" struct-name="model.Figure" key="startFigure">627FF2A4-9311-4DBE-9DB0-1355360AACEA</link>
14344
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
14345
                <value type="int" key="visible">1</value>
14346
                <value type="string" key="name"></value>
14347
              </value>
14348 14264
              <value type="object" struct-name="workbench.physical.Connection" id="9b6b743c-ad0c-11e2-b309-080027bcf912" struct-checksum="0x9baebc92">
14349 14265
                <value type="string" key="caption">fk_parsed_taxon_assertion_taxon_name1</value>
14350 14266
                <value type="real" key="captionXOffs">0.e+00</value>
......
15364 15280
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
15365 15281
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
15366 15282
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">67fa5b28-f6c1-11e2-af44-080027bcf912</link>
15367
                <value type="real" key="middleSegmentOffset">1.89238331473374046254321001470088958740234375e+01</value>
15283
                <value type="real" key="middleSegmentOffset">6.01557599638366582439630292356014251708984375e+01</value>
15368 15284
                <value type="real" key="startCaptionXOffs">0.e+00</value>
15369 15285
                <value type="real" key="startCaptionYOffs">0.e+00</value>
15370 15286
                <value type="int" key="drawSplit">0</value>
......
15472 15388
                <value type="real" key="middleSegmentOffset">0.e+00</value>
15473 15389
                <value type="real" key="startCaptionXOffs">0.e+00</value>
15474 15390
                <value type="real" key="startCaptionYOffs">0.e+00</value>
15475
                <value type="int" key="drawSplit">1</value>
15391
                <value type="int" key="drawSplit">0</value>
15476 15392
                <link type="object" struct-name="model.Figure" key="endFigure">D1965EDA-481F-496B-9C24-79553E7891E8</link>
15477 15393
                <link type="object" struct-name="model.Figure" key="startFigure">627FF2A4-9311-4DBE-9DB0-1355360AACEA</link>
15478 15394
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
......
15679 15595
                <value type="real" key="extraCaptionXOffs">0.e+00</value>
15680 15596
                <value type="real" key="extraCaptionYOffs">0.e+00</value>
15681 15597
                <link type="object" struct-name="db.ForeignKey" key="foreignKey">07e2f24c-1dde-11e3-bd5f-080027bcf912</link>
15682
                <value type="real" key="middleSegmentOffset">-6.2459972911977956755436025559902191162109375e+01</value>
15598
                <value type="real" key="middleSegmentOffset">-6.069062987439656353672035038471221923828125e+01</value>
15683 15599
                <value type="real" key="startCaptionXOffs">0.e+00</value>
15684 15600
                <value type="real" key="startCaptionYOffs">0.e+00</value>
15685 15601
                <value type="int" key="drawSplit">0</value>
......
16479 16395
                <value type="real" key="left">8.54e+02</value>
16480 16396
                <value type="int" key="locked">0</value>
16481 16397
                <value type="int" key="manualSizing">0</value>
16482
                <value type="real" key="top">4.78e+02</value>
16398
                <value type="real" key="top">4.84e+02</value>
16483 16399
                <value type="real" key="width">1.68e+02</value>
16484 16400
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
16485 16401
                <value type="int" key="visible">1</value>
......
16536 16452
                <value type="int" key="expanded">1</value>
16537 16453
                <value type="real" key="height">1.23e+02</value>
16538 16454
                <link type="object" struct-name="model.Layer" key="layer">88F9E582-B992-43CC-B7D6-A42E190DCB13</link>
16539
                <value type="real" key="left">1.043e+03</value>
16455
                <value type="real" key="left">1.068e+03</value>
16540 16456
                <value type="int" key="locked">0</value>
16541 16457
                <value type="int" key="manualSizing">0</value>
16542 16458
                <value type="real" key="top">4.4e+01</value>
......
16594 16510
                <value type="int" key="triggersExpanded">0</value>
16595 16511
                <value type="string" key="color">#CCCC33</value>
16596 16512
                <value type="int" key="expanded">1</value>
16597
                <value type="real" key="height">3.07e+02</value>
16513
                <value type="real" key="height">2.84e+02</value>
16598 16514
                <link type="object" struct-name="model.Layer" key="layer">88F9E582-B992-43CC-B7D6-A42E190DCB13</link>
16599 16515
                <value type="real" key="left">1.42e+03</value>
16600 16516
                <value type="int" key="locked">0</value>
16601 16517
                <value type="int" key="manualSizing">0</value>
16602
                <value type="real" key="top">3.69e+02</value>
16518
                <value type="real" key="top">3.83e+02</value>
16603 16519
                <value type="real" key="width">1.57e+02</value>
16604 16520
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
16605 16521
                <value type="int" key="visible">1</value>
......
16616 16532
                <value type="int" key="expanded">1</value>
16617 16533
                <value type="real" key="height">1.e+02</value>
16618 16534
                <link type="object" struct-name="model.Layer" key="layer">88F9E582-B992-43CC-B7D6-A42E190DCB13</link>
16619
                <value type="real" key="left">1.437e+03</value>
16535
                <value type="real" key="left">1.43e+03</value>
16620 16536
                <value type="int" key="locked">0</value>
16621 16537
                <value type="int" key="manualSizing">0</value>
16622
                <value type="real" key="top">1.96e+02</value>
16538
                <value type="real" key="top">2.43e+02</value>
16623 16539
                <value type="real" key="width">1.06e+02</value>
16624 16540
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
16625 16541
                <value type="int" key="visible">1</value>
......
17830 17746
              <value type="int" key="visible">1</value>
17831 17747
              <value type="string" key="name"></value>
17832 17748
            </value>
17833
            <value _ptr_="0xbb8bd18" type="list" content-type="object" content-struct-name="model.Object" key="selection"/>
17749
            <value _ptr_="0xbb8bd18" type="list" content-type="object" content-struct-name="model.Object" key="selection">
17750
              <link type="object">D1965EDA-481F-496B-9C24-79553E7891E8</link>
17751
            </value>
17834 17752
            <value type="int" key="updateBlocked">0</value>
17835 17753
            <value type="real" key="width">1.6215e+03</value>
17836 17754
            <value type="real" key="x">0.e+00</value>
......
17843 17761
        <link type="object" struct-name="db.mgmt.Rdbms" key="rdbms">com.mysql.rdbms.mysql</link>
17844 17762
        <value _ptr_="0xbadb488" type="list" content-type="object" content-struct-name="db.Script" key="scripts"/>
17845 17763
        <value _ptr_="0xb078db0" type="dict" key="syncProfiles">
17846
          <value type="object" struct-name="db.mgmt.SyncProfile" id="6fccdee0-298c-11e3-a80d-080027bcf912" struct-checksum="0xc64972c2" key="">
17847
            <value _ptr_="0xc9500e0" type="dict" key="lastKnownDBNames">
17764
          <value type="object" struct-name="db.mgmt.SyncProfile" id="c1db31b8-298d-11e3-a80d-080027bcf912" struct-checksum="0xc64972c2" key="">
17765
            <value _ptr_="0xd0d12a8" type="dict" key="lastKnownDBNames">
17848 17766
              <value type="string" key="016697c0-23ec-11e3-ab7c-080027bcf912">name</value>
17849 17767
              <value type="string" key="01b2e3fe-f6ed-11e2-9cf1-080027bcf912">fk_georeferencing_party_list1</value>
17850 17768
              <value type="string" key="01b2e606-f6ed-11e2-9cf1-080027bcf912">georeferenced_by</value>
......
18089 18007
              <value type="string" key="6c2bb9d2-0083-11e3-ac06-080027bcf912">fk_aggregate_observation_size_class1</value>
18090 18008
              <value type="string" key="6c2bbbb2-0083-11e3-ac06-080027bcf912">size_class</value>
18091 18009
              <value type="string" key="6c2bd08e-0083-11e3-ac06-080027bcf912">fk_aggregate_observation_size_class1_idx</value>
18092
              <value type="string" key="6ec4a89c-ad05-11e2-b309-080027bcf912">fk_specimen_individual1</value>
18093
              <value type="string" key="6ec4aa86-ad05-11e2-b309-080027bcf912">individual</value>
18094
              <value type="string" key="6ec4c2fa-ad05-11e2-b309-080027bcf912">fk_specimen_individual1_idx</value>
18095 18010
              <value type="string" key="7255cc48-1beb-11e3-8de9-080027bcf912">specimen_unique_in_individual_observation</value>
18096 18011
              <value type="string" key="74709b22-a795-11e2-84c3-080027bcf912">slope_incline_deg</value>
18097 18012
              <value type="string" key="760751d2-2324-11e3-a5a2-080027bcf912">fk_dataset_traceable1</value>
......
18480 18395
    <value type="object" struct-name="app.DocumentInfo" id="BEE3982F-55A1-4B2C-914A-CD6953803AB9" struct-checksum="0xbba780b8" key="info">
18481 18396
      <value type="string" key="author">Aaron Marcuse-Kubitza</value>
18482 18397
      <value type="string" key="caption">New Model</value>
18483
      <value type="string" key="dateChanged">2013-09-29 21:54</value>
18398
      <value type="string" key="dateChanged">2013-09-29 22:10</value>
18484 18399
      <value type="string" key="dateCreated">2012-01-19 14:06</value>
18485 18400
      <value type="string" key="description"></value>
18486 18401
      <value type="string" key="project">Name of the project</value>
schemas/VegCore/VegCore.my.sql
895 895
/*!40101 SET character_set_client = utf8 */;
896 896
CREATE TABLE `specimen` (
897 897
  `id` varbinary(767) NOT NULL,
898
  `individual` varbinary(767) DEFAULT NULL,
899
  `individual_observation` varbinary(767) DEFAULT NULL COMMENT 'stores observations about the plant the specimen was collected from. some specimens may not be traceable to a reobservable individual, but will still have these plant observations. the collection_event should be set to this field when provided.',
900
  `code_in_individual` varbinary(767) DEFAULT NULL COMMENT 'can also be within the individual_observation if no reobservable individual is available',
898
  `individual_observation` varbinary(767) DEFAULT NULL COMMENT 'the plant the specimen was collected from and any observations about it. the collection_event should be set to this field when provided.',
899
  `code_in_individual` varbinary(767) DEFAULT NULL,
901 900
  `collection_event` varbinary(767) DEFAULT NULL,
902 901
  `orig_collection` varbinary(767) DEFAULT NULL,
903 902
  `barcode` varbinary(767) DEFAULT NULL,
......
907 906
  `current_collection` varbinary(767) DEFAULT NULL,
908 907
  `owner_collection` varbinary(767) DEFAULT NULL,
909 908
  PRIMARY KEY (`id`),
910
  UNIQUE KEY `specimen_unique_in_individual` (`individual`,`code_in_individual`),
911 909
  UNIQUE KEY `specimen_unique_by_collection_event` (`collection_event`),
912 910
  UNIQUE KEY `specimen_unique_in_collection_by_barcode` (`orig_collection`,`barcode`),
913 911
  UNIQUE KEY `specimen_unique_in_collection_by_accession_number` (`orig_collection`,`accession_number`),
914 912
  UNIQUE KEY `specimen_unique_in_individual_observation` (`individual_observation`,`code_in_individual`),
913
  UNIQUE KEY `specimen_unique_in_individual` (`individual_observation`,`code_in_individual`),
915 914
  KEY `fk_specimen_collection1_idx` (`orig_collection`),
916 915
  KEY `fk_specimen_taxon_observation1_idx` (`collection_event`),
917
  KEY `fk_specimen_individual1_idx` (`individual`),
918 916
  KEY `fk_specimen_collection2_idx` (`current_collection`),
919 917
  KEY `fk_specimen_organization3_idx` (`owner_collection`),
920 918
  KEY `fk_specimen_party_list1_idx` (`specimenholder_institutions`),
921 919
  KEY `fk_specimen_individual_observation1_idx` (`individual_observation`),
920
  CONSTRAINT `fk_specimen_individual_observation1` FOREIGN KEY (`individual_observation`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
922 921
  CONSTRAINT `fk_specimen_collection1` FOREIGN KEY (`orig_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
923
  CONSTRAINT `fk_specimen_individual_observation1` FOREIGN KEY (`individual_observation`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
924 922
  CONSTRAINT `fk_specimen_collection2` FOREIGN KEY (`current_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
923
  CONSTRAINT `fk_specimen_organization3` FOREIGN KEY (`owner_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
925 924
  CONSTRAINT `fk_specimen_party_list1` FOREIGN KEY (`specimenholder_institutions`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
926
  CONSTRAINT `fk_specimen_organization3` FOREIGN KEY (`owner_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
927
  CONSTRAINT `fk_specimen_individual1` FOREIGN KEY (`individual`) REFERENCES `individual` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
928
  CONSTRAINT `fk_specimen_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `reobservable` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
929
  CONSTRAINT `fk_specimen_taxon_observation1` FOREIGN KEY (`collection_event`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
925
  CONSTRAINT `fk_specimen_taxon_observation1` FOREIGN KEY (`collection_event`) REFERENCES `taxon_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
926
  CONSTRAINT `fk_specimen_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `reobservable` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
930 927
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='something collected from a plant. this can be a physical "part of a plant" ("Wikipedia":http://en.wikipedia.org/wiki/Specimen), or a picture or description of the plant. when there are multiple specimen replicates (copies) of a specimen, each gets its own specimen_observation pointing to the same specimen.';
931 928
/*!40101 SET character_set_client = @saved_cs_client */;
932 929

  
schemas/VegCore/VegCore.pg.sql
897 897
/*!40101 SET character_set_client = utf8 */;
898 898
CREATE TABLE "specimen" (
899 899
  "id" text NOT NULL,
900
  "individual" text DEFAULT NULL,
901
  "individual_observation" text DEFAULT NULL /*COMMENT 'stores observations about the plant the specimen was collected from. some specimens may not be traceable to a reobservable individual, but will still have these plant observations. the collection_event should be set to this field when provided.'*/,
902
  "code_in_individual" text DEFAULT NULL /*COMMENT 'can also be within the individual_observation if no reobservable individual is available'*/,
900
  "individual_observation" text DEFAULT NULL /*COMMENT 'the plant the specimen was collected from and any observations about it. the collection_event should be set to this field when provided.'*/,
901
  "code_in_individual" text DEFAULT NULL,
903 902
  "collection_event" text DEFAULT NULL,
904 903
  "orig_collection" text DEFAULT NULL,
905 904
  "barcode" text DEFAULT NULL,
......
909 908
  "current_collection" text DEFAULT NULL,
910 909
  "owner_collection" text DEFAULT NULL,
911 910
  PRIMARY KEY ("id"),
912
  /*CONSTRAINT "specimen_unique_in_individual" */UNIQUE ("individual","code_in_individual"),
913 911
  /*CONSTRAINT "specimen_unique_by_collection_event" */UNIQUE ("collection_event"),
914 912
  /*CONSTRAINT "specimen_unique_in_collection_by_barcode" */UNIQUE ("orig_collection","barcode"),
915 913
  /*CONSTRAINT "specimen_unique_in_collection_by_accession_number" */UNIQUE ("orig_collection","accession_number"),
916 914
  /*CONSTRAINT "specimen_unique_in_individual_observation" */UNIQUE ("individual_observation","code_in_individual"),
915
  /*CONSTRAINT "specimen_unique_in_individual" */UNIQUE ("individual_observation","code_in_individual"),
917 916
  /*KEY "fk_specimen_collection1_idx" ("orig_collection")*/CHECK (true),
918 917
  /*KEY "fk_specimen_taxon_observation1_idx" ("collection_event")*/CHECK (true),
919
  /*KEY "fk_specimen_individual1_idx" ("individual")*/CHECK (true),
920 918
  /*KEY "fk_specimen_collection2_idx" ("current_collection")*/CHECK (true),
921 919
  /*KEY "fk_specimen_organization3_idx" ("owner_collection")*/CHECK (true),
922 920
  /*KEY "fk_specimen_party_list1_idx" ("specimenholder_institutions")*/CHECK (true),
923 921
  /*KEY "fk_specimen_individual_observation1_idx" ("individual_observation")*/CHECK (true),
922
  /*CONSTRAINT "fk_specimen_individual_observation1" FOREIGN KEY ("individual_observation") REFERENCES "individual_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
924 923
  /*CONSTRAINT "fk_specimen_collection1" FOREIGN KEY ("orig_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
925
  /*CONSTRAINT "fk_specimen_individual_observation1" FOREIGN KEY ("individual_observation") REFERENCES "individual_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
926 924
  /*CONSTRAINT "fk_specimen_collection2" FOREIGN KEY ("current_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
925
  /*CONSTRAINT "fk_specimen_organization3" FOREIGN KEY ("owner_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
927 926
  /*CONSTRAINT "fk_specimen_party_list1" FOREIGN KEY ("specimenholder_institutions") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
928
  /*CONSTRAINT "fk_specimen_organization3" FOREIGN KEY ("owner_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
929
  /*CONSTRAINT "fk_specimen_individual1" FOREIGN KEY ("individual") REFERENCES "individual" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
930
  /*CONSTRAINT "fk_specimen_taxon_occurrence1" FOREIGN KEY ("id") REFERENCES "reobservable" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
931
  /*CONSTRAINT "fk_specimen_taxon_observation1" FOREIGN KEY ("collection_event") REFERENCES "taxon_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
927
  /*CONSTRAINT "fk_specimen_taxon_observation1" FOREIGN KEY ("collection_event") REFERENCES "taxon_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
928
  /*CONSTRAINT "fk_specimen_taxon_occurrence1" FOREIGN KEY ("id") REFERENCES "reobservable" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
932 929
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='something collected from a plant. this can be a physical "part of a plant" ("Wikipedia":http://en.wikipedia.org/wiki/Specimen), or a picture or description of the plant. when there are multiple specimen replicates (copies) of a specimen, each gets its own specimen_observation pointing to the same specimen.'*/;
933 930
/*!40101 SET character_set_client = @saved_cs_client */;
934 931

  

Also available in: Unified diff