Revision 11115
Added by Aaron Marcuse-Kubitza about 11 years ago
schemas/VegCore/ERD/document.mwb.xml | ||
---|---|---|
6402 | 6402 |
<value type="int" key="scale">-1</value> |
6403 | 6403 |
<link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link> |
6404 | 6404 |
<value type="string" key="comment"></value> |
6405 |
<value type="string" key="name">code_in_individual</value>
|
|
6405 |
<value type="string" key="name">id_within_individual</value>
|
|
6406 | 6406 |
<value type="string" key="oldName">code_in_individual</value> |
6407 | 6407 |
<link type="object" struct-name="GrtObject" key="owner">c672f914-a7a0-11e2-b667-080027bcf912</link> |
6408 | 6408 |
</value> |
... | ... | |
6903 | 6903 |
<value type="int" key="commentedOut">0</value> |
6904 | 6904 |
<value type="string" key="createDate">2013-04-17 13:52</value> |
6905 | 6905 |
<value _ptr_="0xbb25830" type="dict" key="customData"/> |
6906 |
<value type="string" key="lastChangeDate">2013-09-29 22:16</value>
|
|
6906 |
<value type="string" key="lastChangeDate">2013-09-29 22:59</value>
|
|
6907 | 6907 |
<value type="int" key="modelOnly">0</value> |
6908 | 6908 |
<value type="string" key="name">specimen</value> |
6909 | 6909 |
<link type="object" struct-name="GrtNamedObject" key="owner">be8cb246-a6e0-11e2-95e9-080027bcf912</link> |
... | ... | |
17621 | 17621 |
<value type="string" key="name"></value> |
17622 | 17622 |
</value> |
17623 | 17623 |
<value _ptr_="0xbb8bd18" type="list" content-type="object" content-struct-name="model.Object" key="selection"> |
17624 |
<link type="object">D1965EDA-481F-496B-9C24-79553E7891E8</link>
|
|
17624 |
<link type="object">627FF2A4-9311-4DBE-9DB0-1355360AACEA</link>
|
|
17625 | 17625 |
</value> |
17626 | 17626 |
<value type="int" key="updateBlocked">0</value> |
17627 | 17627 |
<value type="real" key="width">1.6215e+03</value> |
... | ... | |
17635 | 17635 |
<link type="object" struct-name="db.mgmt.Rdbms" key="rdbms">com.mysql.rdbms.mysql</link> |
17636 | 17636 |
<value _ptr_="0xbadb488" type="list" content-type="object" content-struct-name="db.Script" key="scripts"/> |
17637 | 17637 |
<value _ptr_="0xb078db0" type="dict" key="syncProfiles"> |
17638 |
<value type="object" struct-name="db.mgmt.SyncProfile" id="ade7aad2-2993-11e3-a80d-080027bcf912" struct-checksum="0xc64972c2" key="">
|
|
17639 |
<value _ptr_="0xdbe0e20" type="dict" key="lastKnownDBNames">
|
|
17638 |
<value type="object" struct-name="db.mgmt.SyncProfile" id="5147fa78-2995-11e3-a80d-080027bcf912" struct-checksum="0xc64972c2" key="">
|
|
17639 |
<value _ptr_="0xd13a208" type="dict" key="lastKnownDBNames">
|
|
17640 | 17640 |
<value type="string" key="016697c0-23ec-11e3-ab7c-080027bcf912">name</value> |
17641 | 17641 |
<value type="string" key="01b2e3fe-f6ed-11e2-9cf1-080027bcf912">fk_georeferencing_party_list1</value> |
17642 | 17642 |
<value type="string" key="01b2e606-f6ed-11e2-9cf1-080027bcf912">georeferenced_by</value> |
... | ... | |
17836 | 17836 |
<value type="string" key="5a8a530a-1dca-11e3-b98c-080027bcf912">fk_reobservable_taxon_determination1</value> |
17837 | 17837 |
<value type="string" key="5a8a54cc-1dca-11e3-b98c-080027bcf912">orig_observation</value> |
17838 | 17838 |
<value type="string" key="5b345f5e-f957-11e2-8597-080027bcf912">fk_taxon_determination_taxon_observation1</value> |
17839 |
<value type="string" key="5c62b4f2-ad03-11e2-b309-080027bcf912">code</value> |
|
17840 | 17839 |
<value type="string" key="5e41c0d2-a778-11e2-92a3-080027bcf912">fk_taxon_assertion_taxon_name1</value> |
17841 | 17840 |
<value type="string" key="5e41cb90-a778-11e2-92a3-080027bcf912">fk_taxon_assertion_taxon_name1_idx</value> |
17842 | 17841 |
<value type="string" key="61c193a8-1dee-11e3-b571-080027bcf912">fk_source_party_list1</value> |
... | ... | |
18265 | 18264 |
<value type="object" struct-name="app.DocumentInfo" id="BEE3982F-55A1-4B2C-914A-CD6953803AB9" struct-checksum="0xbba780b8" key="info"> |
18266 | 18265 |
<value type="string" key="author">Aaron Marcuse-Kubitza</value> |
18267 | 18266 |
<value type="string" key="caption">New Model</value> |
18268 |
<value type="string" key="dateChanged">2013-09-29 22:54</value>
|
|
18267 |
<value type="string" key="dateChanged">2013-09-29 22:59</value>
|
|
18269 | 18268 |
<value type="string" key="dateCreated">2012-01-19 14:06</value> |
18270 | 18269 |
<value type="string" key="description"></value> |
18271 | 18270 |
<value type="string" key="project">Name of the project</value> |
schemas/VegCore/VegCore.my.sql | ||
---|---|---|
898 | 898 |
CREATE TABLE `specimen` ( |
899 | 899 |
`id` varbinary(767) NOT NULL, |
900 | 900 |
`individual_observation` varbinary(767) DEFAULT NULL COMMENT 'the plant the specimen was collected from and any observations about it', |
901 |
`code_in_individual` varbinary(767) DEFAULT NULL,
|
|
901 |
`id_within_individual` varbinary(767) DEFAULT NULL,
|
|
902 | 902 |
`orig_collection` varbinary(767) DEFAULT NULL, |
903 | 903 |
`barcode` varbinary(767) DEFAULT NULL, |
904 | 904 |
`accession_number` varbinary(767) DEFAULT NULL, |
... | ... | |
908 | 908 |
PRIMARY KEY (`id`), |
909 | 909 |
UNIQUE KEY `specimen_unique_in_collection_by_barcode` (`orig_collection`,`barcode`), |
910 | 910 |
UNIQUE KEY `specimen_unique_in_collection_by_accession_number` (`orig_collection`,`accession_number`), |
911 |
UNIQUE KEY `specimen_unique_in_individual_observation` (`individual_observation`,`code_in_individual`),
|
|
912 |
UNIQUE KEY `specimen_unique_in_individual` (`individual_observation`,`code_in_individual`),
|
|
911 |
UNIQUE KEY `specimen_unique_in_individual_observation` (`individual_observation`,`id_within_individual`),
|
|
912 |
UNIQUE KEY `specimen_unique_in_individual` (`individual_observation`,`id_within_individual`),
|
|
913 | 913 |
KEY `fk_specimen_collection1_idx` (`orig_collection`), |
914 | 914 |
KEY `fk_specimen_collection2_idx` (`current_collection`), |
915 | 915 |
KEY `fk_specimen_organization3_idx` (`owner_collection`), |
916 | 916 |
KEY `fk_specimen_individual_observation1_idx` (`individual_observation`), |
917 |
CONSTRAINT `fk_specimen_individual_observation1` FOREIGN KEY (`individual_observation`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
|
917 | 918 |
CONSTRAINT `fk_specimen_collection1` FOREIGN KEY (`orig_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
918 | 919 |
CONSTRAINT `fk_specimen_collection2` FOREIGN KEY (`current_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
919 |
CONSTRAINT `fk_specimen_individual_observation1` FOREIGN KEY (`individual_observation`) REFERENCES `individual_observation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
|
920 | 920 |
CONSTRAINT `fk_specimen_organization3` FOREIGN KEY (`owner_collection`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
921 | 921 |
CONSTRAINT `fk_specimen_taxon_occurrence1` FOREIGN KEY (`id`) REFERENCES `reobservable` (`id`) ON DELETE CASCADE ON UPDATE CASCADE |
922 | 922 |
) 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.'; |
schemas/VegCore/VegCore.pg.sql | ||
---|---|---|
900 | 900 |
CREATE TABLE "specimen" ( |
901 | 901 |
"id" text NOT NULL, |
902 | 902 |
"individual_observation" text DEFAULT NULL /*COMMENT 'the plant the specimen was collected from and any observations about it'*/, |
903 |
"code_in_individual" text DEFAULT NULL,
|
|
903 |
"id_within_individual" text DEFAULT NULL,
|
|
904 | 904 |
"orig_collection" text DEFAULT NULL, |
905 | 905 |
"barcode" text DEFAULT NULL, |
906 | 906 |
"accession_number" text DEFAULT NULL, |
... | ... | |
910 | 910 |
PRIMARY KEY ("id"), |
911 | 911 |
/*CONSTRAINT "specimen_unique_in_collection_by_barcode" */UNIQUE ("orig_collection","barcode"), |
912 | 912 |
/*CONSTRAINT "specimen_unique_in_collection_by_accession_number" */UNIQUE ("orig_collection","accession_number"), |
913 |
/*CONSTRAINT "specimen_unique_in_individual_observation" */UNIQUE ("individual_observation","code_in_individual"),
|
|
914 |
/*CONSTRAINT "specimen_unique_in_individual" */UNIQUE ("individual_observation","code_in_individual"),
|
|
913 |
/*CONSTRAINT "specimen_unique_in_individual_observation" */UNIQUE ("individual_observation","id_within_individual"),
|
|
914 |
/*CONSTRAINT "specimen_unique_in_individual" */UNIQUE ("individual_observation","id_within_individual"),
|
|
915 | 915 |
/*KEY "fk_specimen_collection1_idx" ("orig_collection")*/CHECK (true), |
916 | 916 |
/*KEY "fk_specimen_collection2_idx" ("current_collection")*/CHECK (true), |
917 | 917 |
/*KEY "fk_specimen_organization3_idx" ("owner_collection")*/CHECK (true), |
918 | 918 |
/*KEY "fk_specimen_individual_observation1_idx" ("individual_observation")*/CHECK (true), |
919 |
/*CONSTRAINT "fk_specimen_individual_observation1" FOREIGN KEY ("individual_observation") REFERENCES "individual_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true), |
|
919 | 920 |
/*CONSTRAINT "fk_specimen_collection1" FOREIGN KEY ("orig_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true), |
920 | 921 |
/*CONSTRAINT "fk_specimen_collection2" FOREIGN KEY ("current_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true), |
921 |
/*CONSTRAINT "fk_specimen_individual_observation1" FOREIGN KEY ("individual_observation") REFERENCES "individual_observation" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true), |
|
922 | 922 |
/*CONSTRAINT "fk_specimen_organization3" FOREIGN KEY ("owner_collection") REFERENCES "collection" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true), |
923 | 923 |
/*CONSTRAINT "fk_specimen_taxon_occurrence1" FOREIGN KEY ("id") REFERENCES "reobservable" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true) |
924 | 924 |
) /*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.'*/; |
Also available in: Unified diff
schemas/VegCore/ERD/VegCore.ERD.mwb: specimen.code_in_individual: renamed to id_within_individual to match the id_within_* naming convention using elsewhere