/* SQL DDL: Create an implementation of the model using the SQL Data Definition Language */
/* Note: You may want to change some field types to improve the implementation on your DBMS */
/* Comments such as this may not be supported by your system and may have to be removed */
/* Note: Tested with MS SQL Server 2000 and PostgreSQL. The following changes must be made: */
/* MS SQL Server 2000: replace the data type BOOLEAN with BIT */
/* MS SQL Server 2000: replace the SQL92 constant 'current_timestamp' with 'GETDATE()' (= date and time) */
/* MS SQL Server 2000: remove comments around the block of 'exec' statements at end of file to enable creation of column descriptions */
/* PostgreSQL: National Character etc. indicates Unicode text. For Postgres you should create the entire database as Unicode and the 'National' must be removed from the SQL code */
/* PostgreSQL: replace the data type CHARACTER VARYING with VARCHAR */
/* PostgreSQL: replace the data type DATETIME with TIMESTAMP */
/* PostgreSQL: replace the SQL92 constant 'current_timestamp' with 'timestamp('now')' (= date and time) */
/* Note: CREATE INDEX (other than primary, foreign, or unique key constraints) are missing at the moment; to be added later */
/* Generated on 19.Mai.2001 23:22 by Diversity Workbench: Diversity Information Model Documenter, Vers. 1.6 (G. Hagedorn) */
/*=== Table: TaxonomyName ===*/
/* */
/* NomID: Unique ID code for the nomenclatural name (primary key). */
/* CreationType: T: taxon based on new type; C: combination based on a previously publ. name ('comb. nov.'), N: new name ('nom.nov.') introduced to replace a homonym (may occur for genera!), V: validation of previously invalidly publ. taxon name ('ex'), or U: for unknown. */
/* CreationCode: Code of Nomenclature under which this taxon was created: 1 = Bacteriology, 2 = Botany (incl. Mycology), 3 = Zoology, 4 = Biocode (for future use). */
/* TaxonomicRank: Taxonomic rank of the taxon (var., subsp., species, genus, family, order, etc.). The rank must be selected from the associated list of ranks (= TaxonomyRank). */
/* TaxonName1: Genus name for species and lower ranks, else full taxon name (infrageneric taxon names, genera, families, etc.). Contains the currently accepted spelling. */
/* SpeciesEpithet: If rank is species or below: Species epithet, for example 'alba' in 'Abies alba Miller' (currently accepted spelling). */
/* TaxonAuthors: For all taxonomic ranks: Author(s) of the taxon, abbreviated according to authors standard, including validating authors ('ex'), optionally including sanctioning authors or "in" authors, excluding basionym authors in '()' (see TaxonBasionymAuthors). */
/* TaxonBasionymAuthors: For all taxonomic ranks, only for 'comb. nov.' or 'nom. nov.': Author(s) of the basionym (will be displayed in in '()', do not enter the parentheses), abbreviated according to authors standard. */
/* BasionymNomID: Basionym: If CreationType is 'comb. nov.' or replacement ('nom. nov.'), of another name based on the same type material. Refers to ID code of corresponding TaxonomyName (= foreign key). */
/* ValidatedNomID: Validated name: If CreationType is validation ('ex') of another name based on the same type material. Refers to ID code of invalidly publ. TaxonomyName (= foreign key). */
/* InfraspecificEpithet: If rank is infraspecific: Infraspecific epithet (currently accepted spelling). Note: the rank is known from required attribute TaxonomicRank in TaxonomyName (= the supertype entity). */
/* InfraspecificIsAutonym: If rank is infraspecific: The infraspecific name is an autonym (example: 'Abies alba Miller ssp. alba'; normal infraspecific example: 'Abies alba ssp. nebrodensis (Lojac.) Nitz.', note the placement of author names!). */
/* ConceptSuffix: For example 'sensu' or 'emend.' author, or 's.str.'/'s.lat.'. Provided to simplify later changes (multiple taxon concepts can be based on a single name, so this really belongs into a separate entity). Comp. 'potential taxon' sensu Berendsohn! */
/* TypeGenus_NomID: If rank is suprageneric: Type genus of taxon. Refers to the ID code of TaxonomyName (= foreign key). */
/* TypeSpecies_NomID: If rank is genus or infrageneric: Type species of genus or infrageneric taxon. Refers to the ID code of TaxonomyName (= foreign key). */
/* TypeSpecimenDeposition: If rank is species or below: Information on deposition of type material in a collection, entered exactly as written in the protologue (original taxon description). */
/* TypeSpecimenLocation: If rank is species or below: Optional information on the geographic location of type material, entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!). */
/* TypeSpecimenSubstrate: If rank is species or below: Optional information on substrate (anorganic, or living/dead plant, animal, or fungus) of type material, entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!). */
/* TypeSpecimenCollectors: If rank is species or below: Optional information on collector(s) of type material (separate multiple collectors with a ";"), entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!). */
/* TypeSpecimenInformation: If rank is species or below: Optional further information on type material, esp. collection date and number, entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!). */
/* GenusIsAsexual: If rank is genus: Checked (or true) -> this an anamorph genus, containing asexual forms only (relevant for fungi). The information can also be obtained from the taxonomic hierarchy; it is always added here to be available when the hierarchy is incomplete. */
/* ProtologueReportedCitation: Optional text of citation (without year); used only when default reference description is unsatisfactorily (esp. abbreviated tax. book titles, exsiccata references). If present, this information is used in preference over the ProtologueRefDescription. */
/* ProtologueRefID: Reference ID of the original description/protologue. Refers to the ID code of the main ReferenceTitle table in the reference module (= foreign key). */
/* ProtologueRefDescriptionCache: A short human readable description of the reference, obtained through the ProtologueRefID from the references subsystem (calculated field). */
/* ProtologueRefPage: First page of protologue (original description) in the reference. */
/* ProtologueRefHasReprintPagination: If checked (or 'True'), the true page number of the protologue page is unknown and only a reprint page number (pagination starting w. 1...) can be given. In tax. monographs this situation is often indicated by 'extr.' or 'extractum' after the page number. */
/* ProtologueRefYear: Publication year of original description, will be automatically entered if a protologue reference is selected from the reference module. Synonym output is sorted by year. */
/* IsHybrid: If checked (or 'True'), the new taxon is a hybrid with or without a hybrid epithet. */
/* HybridANomID: Hybrid species A name: if IsHybrid is set yes. Refers to ID code of publ. TaxonomyName (= foreign key). */
/* HybridBNomID: Hybrid species B name: if IsHybrid is set yes. Refers to ID code of publ. TaxonomyName (= foreign key). */
/* OriginalNameSpelling: Original spelling of taxonomic name in the protologue publication. Recorded only, if different from current taxon name. */
/* OriginalTaxonPlacement: Taxonomic placement (e.g. family or division) mentioned in the original description. This is NOT the current taxonomic placement! */
/* OriginalDiagnosisLatin: Optional: The full text of the Latin description/diagnosis in the protologue. */
/* OriginalDiagnosisOther: Optional: The full text of the original description/diagnosis in the protologue, if a diagnosis in another language than Latin was provided. To be entered into the database only if no copyright is violated. */
/* IndexingReference: Optional: A secondary reference indexing this taxon, e.g. Saccardo, Index of Fungi, etc. Entered as text, not as reference ID! */
/* ImportedFrom: If imported from another database: The name of the database system or provider. Otherwise empty. */
/* ImportedID: If imported from another database: An ID value to later re-identify the record in that database may be stored here. */
/* IneditedResponsible: Empty for published names, filled w. the name of the responsible person for unpublished ('inedited') names entered in the database. These may not appear in any reports, until specifically requested for a report that will be used to publish the name. */
/* Problem: Problem with data entry (not with the taxon). */
/* LogCreated_User: Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible. */
/* LogCreated_Date: Date and time when record was first entered (typed or imported) into this system. */
/* NameCache: Calculated: Full, standardized name for the new taxon, calculated from genus, species and infraspecific epithet and authors. The value is unique, since it includes the author for higher taxa (genera, families) as well as for species. */
/* NameCache_html: Calculated: Like NameCache, but italic and plain text is formatted using xhtml markup (/). */
/* NameCache_NoAuthors: Calculated: Like NameCache, but without any authors. Duplicates may occur here, and taxa with homonyms can be detected using this attribute. Where no homonyms are found, names from other data sources may be compared based on this field alone. */
/* NameCache_inverted: Calculated: Like NameCache, but for species or infraspecific taxa the lowest rank name is printed first ('species-epitheton, Genus' or 'variety (var.) species-epitheton, Genus'). */
CREATE TABLE TaxonomyName (
NomID INTEGER IDENTITY NOT NULL PRIMARY KEY,
CreationType NATIONAL CHARACTER VARYING(1) NOT NULL DEFAULT 'U',
CreationCode TINYINT NOT NULL DEFAULT 2,
TaxonomicRank TINYINT NOT NULL,
TaxonName1 NATIONAL CHARACTER VARYING(255) NULL,
SpeciesEpithet NATIONAL CHARACTER VARYING(255) NULL,
TaxonAuthors NATIONAL CHARACTER VARYING(255) NULL,
TaxonBasionymAuthors NATIONAL CHARACTER VARYING(255) NULL,
BasionymNomID INTEGER NULL,
ValidatedNomID INTEGER NULL,
InfraspecificEpithet NATIONAL CHARACTER VARYING(255) NULL,
InfraspecificIsAutonym BOOLEAN NULL DEFAULT 0,
ConceptSuffix NATIONAL CHARACTER VARYING(255) NULL,
TypeGenus_NomID INTEGER NULL,
TypeSpecies_NomID INTEGER NULL,
TypeSpecimenDeposition NATIONAL CHARACTER VARYING(255) NULL,
TypeSpecimenLocation NATIONAL TEXT NULL,
TypeSpecimenSubstrate NATIONAL TEXT NULL,
TypeSpecimenCollectors NATIONAL TEXT NULL,
TypeSpecimenInformation NATIONAL TEXT NULL,
GenusIsAsexual BOOLEAN NULL DEFAULT Null,
ProtologueReportedCitation NATIONAL CHARACTER VARYING(255) NULL,
ProtologueRefID NATIONAL CHARACTER VARYING(20) NULL,
ProtologueRefDescriptionCache NATIONAL CHARACTER VARYING(255) NULL,
ProtologueRefPage NATIONAL CHARACTER VARYING(50) NULL,
ProtologueRefHasReprintPagination BOOLEAN NOT NULL DEFAULT 0,
ProtologueRefYear INTEGER NULL,
IsHybrid BOOLEAN NULL,
HybridANomID INTEGER NULL,
HybridBNomID INTEGER NULL,
OriginalNameSpelling NATIONAL CHARACTER VARYING(255) NULL,
OriginalTaxonPlacement NATIONAL CHARACTER VARYING(255) NULL,
OriginalDiagnosisLatin NATIONAL TEXT NULL,
OriginalDiagnosisOther NATIONAL TEXT NULL,
IndexingReference NATIONAL CHARACTER VARYING(255) NULL,
ImportedFrom NATIONAL CHARACTER VARYING(50) NULL,
ImportedID NATIONAL CHARACTER VARYING(255) NULL,
IneditedResponsible NATIONAL CHARACTER VARYING(50) NULL,
Problem NATIONAL CHARACTER VARYING(255) NULL,
LogCreated_User NATIONAL CHARACTER VARYING(50) NULL,
LogCreated_Date DATETIME NOT NULL DEFAULT current_timestamp,
NameCache NATIONAL CHARACTER VARYING(255) NOT NULL UNIQUE,
NameCache_html NATIONAL CHARACTER VARYING(255) NOT NULL,
NameCache_NoAuthors NATIONAL CHARACTER VARYING(255) NOT NULL,
NameCache_inverted NATIONAL CHARACTER VARYING(255) NOT NULL UNIQUE
)
/*=== Table: TaxonomyActionOnName ===*/
/* */
/* ActionID: Unique ID for this record. */
/* NomID: The taxon concerning this action. Refers to the NomID code of TaxonomyName (= foreign key). */
/* ActionType: Type of nomenclatural action: conservation, rejection, neo-, lecto- or epitypification, emendation. The sanctioning of a name should not be recorded here. */
/* InternalNote: Additional information regarding the typification or conservation/rejection. */
/* RefID: Reference ID of the reference containing the nomenclatural action defined in ActionType. Refers to the ID code of the main ReferenceTitle table in the reference module (= foreign key). */
/* RefDescriptionCache: A short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field). */
/* RefPage: Relevant detail in a nomenclatural action reference; usually number of the page on which the action is described. */
/* LogCreated_User: Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible. */
/* LogCreated_Date: Date and time when record was first entered (typed or imported) into this system. */
/* TypificationSpecimenDescription: Only for typification actions: A user readable description of the specimen to which the typification refers (collection acronym + storage code / name under which specimen is stored). */
/* TypificationSpecimenID: Only for typification actions: If a specimen collection database subsystem is available, the relevant specimen unit identifier in that system is stored here (added in addition to a user readable TypificationSpecimenDescription). */
CREATE TABLE TaxonomyActionOnName (
ActionID INTEGER IDENTITY NOT NULL PRIMARY KEY,
NomID INTEGER NOT NULL,
ActionType NATIONAL CHARACTER VARYING(1) NOT NULL,
InternalNote NATIONAL TEXT NULL,
RefID NATIONAL CHARACTER VARYING(20) NOT NULL,
RefDescriptionCache NATIONAL CHARACTER VARYING(255) NULL,
RefPage NATIONAL CHARACTER VARYING(50) NULL,
LogCreated_User NATIONAL CHARACTER VARYING(50) NOT NULL,
LogCreated_Date DATETIME NOT NULL DEFAULT current_timestamp,
TypificationSpecimenDescription NATIONAL CHARACTER VARYING(255) NULL,
TypificationSpecimenID NATIONAL CHARACTER VARYING(255) NULL
)
/*=== Table: TaxonomyRank ===*/
/* */
/* RankID: The logical order of ranks (and display order), can be tested to find false hierarchizations or combinations Do not change the code, it is used in several restriction queries! */
/* RankCode: A unique user readable code for the taxonomic rank that is used in TaxonomyName. */
/* Description: Single line description of the rank. */
/* Output: Output elements for the rank, stored as a list of two elements (prefix string-semicolon-postfix string). */
/* Notes: Internal development notes regarding the taxonomic rank. */
/* DisplayOrder: The order in which the entries are displayed. */
/* DisplayEnable: The entries are displayed only if marked here. */
CREATE TABLE TaxonomyRank (
RankID TINYINT NOT NULL PRIMARY KEY,
RankCode NATIONAL CHARACTER VARYING(20) NOT NULL,
Description NATIONAL CHARACTER VARYING(255) NULL,
Output NATIONAL CHARACTER VARYING(255) NULL,
Notes NATIONAL CHARACTER VARYING(255) NULL,
DisplayOrder INTEGER NOT NULL UNIQUE,
DisplayEnable BOOLEAN NOT NULL
)
/*=== Table: TaxonomyHierarchy ===*/
/* */
/* ProjectMarker: Each project can implement a different taxonomic hierarchy. Refers to the common project definition in the user module. */
/* NomID: Unique ID code of the higher taxon. Refers to the NomID code of TaxonomyName (= foreign key). */
/* Parent_NomID: Next higher taxon (e.g. the family or subfamily if this taxon is a genus). */
/* ReportedNote: Taxonomic remarks that will be output after the taxon in a report. */
/* InternalNote: An internal note of the responsible person concerning this taxon. This information is NOT included in any report. */
/* RefID: If the classification is based on a publication: the reference ID of that work. */
/* RefDescriptionCache: If the classification is based on a publication: a short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field). */
/* RefPage: If the classification is based on a publication: relevant detail; usually page number where the opinion is published. */
/* Responsible: The person responsible for grouping this taxon into a higher taxon. */
/* LogCreated_User: Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible. */
/* LogCreated_Date: Date and time when record was first entered (typed or imported) into this system. */
/* HierarchyListCache: CALCULATED FIELD: List of higher taxa for faster access: "div.; class; ord.; fam.". */
CREATE TABLE TaxonomyHierarchy (
ProjectMarker NATIONAL CHARACTER VARYING(25) NOT NULL,
NomID INTEGER NOT NULL,
Parent_NomID INTEGER NULL,
ReportedNote NATIONAL CHARACTER VARYING(255) NULL,
InternalNote NATIONAL TEXT NULL,
RefID NATIONAL CHARACTER VARYING(20) NULL,
RefDescriptionCache NATIONAL CHARACTER VARYING(255) NULL,
RefPage NATIONAL CHARACTER VARYING(50) NULL,
Responsible NATIONAL CHARACTER VARYING(50) NOT NULL,
LogCreated_User NATIONAL CHARACTER VARYING(50) NULL,
LogCreated_Date DATETIME NULL DEFAULT current_timestamp,
HierarchyListCache NATIONAL CHARACTER VARYING(255) NULL,
PRIMARY KEY (ProjectMarker,NomID)
)
/*=== Table: TaxonomySynonymy ===*/
/* */
/* ProjectMarker: Each project can have a different opinion regarding synonmy. Refers to the common project definition in the user module. */
/* NomID: Synonym name. Refers to the NomID code of TaxonomyName (= foreign key). */
/* ProParteMarker: 0 = only a single accepted name is possible for a given synonym. 1..255 = multiple valid names are allowed for pro parte ('p.p.') synonyms. Use 1 for the first pro parte name, 2 for the second, and so on. Please do not use 0 for 1st, 2nd, etc. name! */
/* Accepted_NomID: Accepted name within a project. Refers to the NomID code of TaxonomyName (= foreign key). */
/* InternalNote: An internal note of the responsible person concerning this synonymization. This information is NOT included in any report. */
/* SynonymRefID: If the synonymization is based on a publication: the reference ID of that work. Refers to the ID code of the main ReferenceTitle table in the reference module (= foreign key). */
/* RefDescriptionCache: If the synonymization is based on a publication: a short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field). */
/* RefPage: If the synonymization is based on a publication: relevant detail; usually page number where the synonymization is published. */
/* Responsible: The person responsible for this synonymy opinion. */
/* LogCreated_User: Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible. */
/* LogCreated_Date: Date and time when record was first entered (typed or imported) into this system. */
CREATE TABLE TaxonomySynonymy (
ProjectMarker NATIONAL CHARACTER VARYING(25) NOT NULL,
NomID INTEGER NOT NULL,
ProParteMarker TINYINT NOT NULL DEFAULT 0,
Accepted_NomID INTEGER NOT NULL,
InternalNote NATIONAL TEXT NOT NULL,
SynonymRefID NATIONAL CHARACTER VARYING(20) NULL,
RefDescriptionCache NATIONAL CHARACTER VARYING(255) NULL,
RefPage NATIONAL CHARACTER VARYING(50) NULL,
Responsible NATIONAL CHARACTER VARYING(50) NOT NULL,
LogCreated_User NATIONAL CHARACTER VARYING(50) NOT NULL,
LogCreated_Date DATETIME NOT NULL DEFAULT current_timestamp,
PRIMARY KEY (ProjectMarker,NomID,ProParteMarker)
)
/*=== Table: TaxonomyOpinion ===*/
/* */
/* OpinionID: Unique ID code for the opinion (primary key). Note that the combination of NomID, ProjectMarker, and Responsible must also be unique and not null (candidate key). */
/* NomID: The taxon this opinion refers to. Refers to the NomID code of TaxonomyName (= foreign key). */
/* ProjectMarker: Each project can have a different opinion regarding synonmy. Refers to the common project definition in the user module. */
/* Responsible: The person responsible for this opinion/assessment on a taxon. */
/* WorkingStatus: Working status of taxonomic name in current project: I=Included, D=Doubtful, E=Excluded, etc. Synonyms of accepted taxa should have status I. The report may be grouped by these attributes. */
/* NomenclaturalStatus: ... categories for effective/valid/legitimate... esp. 'nom. illeg.', 'nom. inval.', 'nom. nudum', etc. */
/* ReportedNote: Taxonomic remarks that will be output after the taxon in a report. This includes an explanation, esp. the relevant articles in the code of nomenclature. */
/* InternalNote: An internal note of the responsible person concerning this name. This information is NOT included in any report. */
/* RefID: If the opinion is based on a publication: the reference ID of that work. */
/* RefDescriptionCache: If the opinion is based on a publication: a short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field). */
/* RefPage: If the opinion is based on a publication: relevant detail; usually page number where the opinion is published. */
/* UserMarker1: A temporary marker or keyword assigned by user for searching and sorting purposes while a group is reviewed. Any information can be entered here, but it will be visible only internally. */
/* UserMarker2: A temporary marker or keyword assigned by user for searching and sorting purposes while a group is reviewed. Any information can be entered here, but it will be visible only internally. */
/* Problem: Temporary problem with data entry (not with the taxon, cmp. ReportedNote/InternalNote for permanent notes on problems). */
/* CheckPlausible_User: Name of user responsible for a first plausibility or consistency check. User and Date are automatically filled if 'Original check' performed directly. */
/* CheckPlausible_Date: Date and time when plausibility/consistency was checked (i.e. data entry rules and spelling errors checked, no comparison with original publication). */
/* CheckOriginal_User: Name of user responsible for comparison of taxon record with original publication. */
/* CheckOriginal_Date: Date and time when entry was compared with the original publication. */
/* LogCreated_User: Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible. */
/* LogCreated_Date: Date and time when record was first entered (typed or imported) into this system. */
/* FinalCheck_User: Name of user responsible for final review of taxon name, the presence of a name here indicates that the record is ready for publication. */
/* FinalCheck_Date: Date and time when final check was performed. */
CREATE TABLE TaxonomyOpinion (
OpinionID INTEGER IDENTITY NOT NULL PRIMARY KEY,
NomID INTEGER NOT NULL UNIQUE,
ProjectMarker NATIONAL CHARACTER VARYING(25) NOT NULL UNIQUE,
Responsible NATIONAL CHARACTER VARYING(50) NOT NULL UNIQUE,
WorkingStatus NATIONAL CHARACTER VARYING(1) NULL,
NomenclaturalStatus NATIONAL CHARACTER VARYING(255) NULL,
ReportedNote NATIONAL TEXT NULL,
InternalNote NATIONAL TEXT NOT NULL,
RefID NATIONAL CHARACTER VARYING(20) NULL,
RefDescriptionCache NATIONAL CHARACTER VARYING(255) NULL,
RefPage NATIONAL CHARACTER VARYING(50) NULL,
UserMarker1 NATIONAL CHARACTER VARYING(50) NULL,
UserMarker2 NATIONAL CHARACTER VARYING(50) NULL,
Problem NATIONAL CHARACTER VARYING(255) NULL,
CheckPlausible_User NATIONAL CHARACTER VARYING(50) NULL,
CheckPlausible_Date DATETIME NULL,
CheckOriginal_User NATIONAL CHARACTER VARYING(50) NULL,
CheckOriginal_Date DATETIME NULL,
LogCreated_User NATIONAL CHARACTER VARYING(50) NOT NULL,
LogCreated_Date DATETIME NOT NULL DEFAULT current_timestamp,
FinalCheck_User NATIONAL CHARACTER VARYING(50) NULL,
FinalCheck_Date DATETIME NULL
)
/*=== Table: TaxonomyCitedSpecimen ===*/
/* */
/* CitedSpecimenID: Unique ID for a cited specimen (primary key). */
/* OpinionID: All cited specimens must refer to a taxonomic opinion that defines a NomID, project marker, and responsible scientist (foreign key). */
/* CollectionAcronym: Standard abbreviation of the collection from which the studied specimen was obtained (e.g. 'B' for Berlin herbarium). The full name is used if no acronym is available. */
/* CollectionSpecimenID: Used only when a specimen record is available in a compatible collection database subsystem; refers to CollectionSpecimenID in that system (foreign key). */
/* CollectionSpecimenDescription: Optionally used for accession number or storage location name (which may be different from current scientific name!), esp. if CollectionSpecimenID can not be used because no compatible collection database subsystem is available. */
/* TypeStatus: Type, holotype, syntype, paratype, isotype, lectotype, neotype, epitype, etc. */
/* ReportedNote: Annotation regarding the studied specimen that will be output after the taxon in a report. */
/* InternalNote: An internal note of the responsible person concerning the studied specimen. This information is NOT included in any report. */
/* Studied: False = the specimen is known to exist, but has not (perhaps not yet) been studied by the person named under Responsible. */
/* IncludeInReport: False = the information on the studied specimen is suppressed in reports, but is maintained in the database. */
CREATE TABLE TaxonomyCitedSpecimen (
CitedSpecimenID INTEGER IDENTITY NOT NULL PRIMARY KEY,
OpinionID INTEGER NOT NULL,
CollectionAcronym NATIONAL CHARACTER VARYING(50) NULL,
CollectionSpecimenID NATIONAL CHARACTER VARYING(255) NULL,
CollectionSpecimenDescription NATIONAL CHARACTER VARYING(255) NULL,
TypeStatus NATIONAL CHARACTER VARYING(255) NULL,
ReportedNote NATIONAL TEXT NULL,
InternalNote NATIONAL TEXT NOT NULL,
Studied BOOLEAN NOT NULL DEFAULT 0,
IncludeInReport BOOLEAN NOT NULL DEFAULT 1
)
/*=== Table: TaxonomyChanges ===*/
/* */
/* NomID: The ID of the taxon that was changed by the user. Refers to the NomID code of TaxonomyName (= foreign key). */
/* Changes: Attributes and data affected by changes, details of changes. */
/* LogUpdated_User: Name of user who last updated the record. This is the operator (or typist) name, which may be different from the person responsible. */
/* LogUpdated_Date: Date and time of last update of the record. */
/* s_GUID: (system attribute used in database replication). */
/* s_Generation: (system attribute used in database replication). */
/* s_Lineage: (system attribute used in database replication). */
CREATE TABLE TaxonomyChanges (
NomID INTEGER NOT NULL,
Changes NATIONAL TEXT NOT NULL,
LogUpdated_User NATIONAL CHARACTER VARYING(50) NOT NULL,
LogUpdated_Date DATETIME NOT NULL,
s_GUID UNIQUEIDENTIFIER NULL UNIQUE,
s_Generation INTEGER NULL,
s_Lineage IMAGE NULL,
PRIMARY KEY (LogUpdated_Date,NomID)
)
ALTER TABLE TaxonomyName ADD
FOREIGN KEY (BasionymNomID) REFERENCES TaxonomyName (NomID),
FOREIGN KEY (TaxonomicRank) REFERENCES TaxonomyRank (RankID) ON UPDATE CASCADE
ALTER TABLE TaxonomyActionOnName ADD
FOREIGN KEY (NomID) REFERENCES TaxonomyName (NomID) ON DELETE CASCADE
ALTER TABLE TaxonomyHierarchy ADD
FOREIGN KEY (Parent_NomID) REFERENCES TaxonomyName (NomID),
FOREIGN KEY (NomID) REFERENCES TaxonomyName (NomID)
ALTER TABLE TaxonomySynonymy ADD
FOREIGN KEY (NomID) REFERENCES TaxonomyName (NomID),
FOREIGN KEY (Accepted_NomID) REFERENCES TaxonomyName (NomID)
ALTER TABLE TaxonomyCitedSpecimen ADD
FOREIGN KEY (OpinionID) REFERENCES TaxonomyOpinion (OpinionID) ON UPDATE CASCADE ON DELETE CASCADE
/*** Remove this comment line to enable creation of column description for MS SQL Server 2000 ***
exec sp_addextendedproperty N'MS_Description',N'Unique ID code for the nomenclatural name (primary key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'NomID'
exec sp_addextendedproperty N'MS_Description',N'T: taxon based on new type; C: combination based on a previously publ. name (''comb. nov.''), N: new name (''nom.nov.'') introduced to replace a homonym (may occur for genera!), V: validation of previously invalidly publ. taxon name (''ex''), or U: for unknown.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'CreationType'
exec sp_addextendedproperty N'MS_Description',N'Code of Nomenclature under which this taxon was created: 1 = Bacteriology, 2 = Botany (incl. Mycology), 3 = Zoology, 4 = Biocode (for future use).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'CreationCode'
exec sp_addextendedproperty N'MS_Description',N'Taxonomic rank of the taxon (var., subsp., species, genus, family, order, etc.). The rank must be selected from the associated list of ranks (= TaxonomyRank).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TaxonomicRank'
exec sp_addextendedproperty N'MS_Description',N'Genus name for species and lower ranks, else full taxon name (infrageneric taxon names, genera, families, etc.). Contains the currently accepted spelling.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TaxonName1'
exec sp_addextendedproperty N'MS_Description',N'If rank is species or below: Species epithet, for example ''alba'' in ''Abies alba Miller'' (currently accepted spelling).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'SpeciesEpithet'
exec sp_addextendedproperty N'MS_Description',N'For all taxonomic ranks: Author(s) of the taxon, abbreviated according to authors standard, including validating authors (''ex''), optionally including sanctioning authors or "in" authors, excluding basionym authors in ''()'' (see TaxonBasionymAuthors).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TaxonAuthors'
exec sp_addextendedproperty N'MS_Description',N'For all taxonomic ranks, only for ''comb. nov.'' or ''nom. nov.'': Author(s) of the basionym (will be displayed in in ''()'', do not enter the parentheses), abbreviated according to authors standard.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TaxonBasionymAuthors'
exec sp_addextendedproperty N'MS_Description',N'Basionym: If CreationType is ''comb. nov.'' or replacement (''nom. nov.''), of another name based on the same type material. Refers to ID code of corresponding TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'BasionymNomID'
exec sp_addextendedproperty N'MS_Description',N'Validated name: If CreationType is validation (''ex'') of another name based on the same type material. Refers to ID code of invalidly publ. TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ValidatedNomID'
exec sp_addextendedproperty N'MS_Description',N'If rank is infraspecific: Infraspecific epithet (currently accepted spelling). Note: the rank is known from required attribute TaxonomicRank in TaxonomyName (= the supertype entity).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'InfraspecificEpithet'
exec sp_addextendedproperty N'MS_Description',N'If rank is infraspecific: The infraspecific name is an autonym (example: ''Abies alba Miller ssp. alba''; normal infraspecific example: ''Abies alba ssp. nebrodensis (Lojac.) Nitz.'', note the placement of author names!).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'InfraspecificIsAutonym'
exec sp_addextendedproperty N'MS_Description',N'For example ''sensu'' or ''emend.'' author, or ''s.str.''/''s.lat.''. Provided to simplify later changes (multiple taxon concepts can be based on a single name, so this really belongs into a separate entity). Comp. ''potential taxon'' sensu Berendsohn!',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ConceptSuffix'
exec sp_addextendedproperty N'MS_Description',N'If rank is suprageneric: Type genus of taxon. Refers to the ID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TypeGenus_NomID'
exec sp_addextendedproperty N'MS_Description',N'If rank is genus or infrageneric: Type species of genus or infrageneric taxon. Refers to the ID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TypeSpecies_NomID'
exec sp_addextendedproperty N'MS_Description',N'If rank is species or below: Information on deposition of type material in a collection, entered exactly as written in the protologue (original taxon description).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TypeSpecimenDeposition'
exec sp_addextendedproperty N'MS_Description',N'If rank is species or below: Optional information on the geographic location of type material, entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TypeSpecimenLocation'
exec sp_addextendedproperty N'MS_Description',N'If rank is species or below: Optional information on substrate (anorganic, or living/dead plant, animal, or fungus) of type material, entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TypeSpecimenSubstrate'
exec sp_addextendedproperty N'MS_Description',N'If rank is species or below: Optional information on collector(s) of type material (separate multiple collectors with a ";"), entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TypeSpecimenCollectors'
exec sp_addextendedproperty N'MS_Description',N'If rank is species or below: Optional further information on type material, esp. collection date and number, entered exactly as written in the protologue (i.e. not as known from type specimen studied elsewhere!).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TypeSpecimenInformation'
exec sp_addextendedproperty N'MS_Description',N'If rank is genus: Checked (or true) -> this an anamorph genus, containing asexual forms only (relevant for fungi). The information can also be obtained from the taxonomic hierarchy; it is always added here to be available when the hierarchy is incomplete.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'GenusIsAsexual'
exec sp_addextendedproperty N'MS_Description',N'Optional text of citation (without year); used only when default reference description is unsatisfactorily (esp. abbreviated tax. book titles, exsiccata references). If present, this information is used in preference over the ProtologueRefDescription.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ProtologueReportedCitation'
exec sp_addextendedproperty N'MS_Description',N'Reference ID of the original description/protologue. Refers to the ID code of the main ReferenceTitle table in the reference module (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ProtologueRefID'
exec sp_addextendedproperty N'MS_Description',N'A short human readable description of the reference, obtained through the ProtologueRefID from the references subsystem (calculated field).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ProtologueRefDescriptionCache'
exec sp_addextendedproperty N'MS_Description',N'First page of protologue (original description) in the reference.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ProtologueRefPage'
exec sp_addextendedproperty N'MS_Description',N'If checked (or ''True''), the true page number of the protologue page is unknown and only a reprint page number (pagination starting w. 1...) can be given. In tax. monographs this situation is often indicated by ''extr.'' or ''extractum'' after the page number.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ProtologueRefHasReprintPagination'
exec sp_addextendedproperty N'MS_Description',N'Publication year of original description, will be automatically entered if a protologue reference is selected from the reference module. Synonym output is sorted by year.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ProtologueRefYear'
exec sp_addextendedproperty N'MS_Description',N'If checked (or ''True''), the new taxon is a hybrid with or without a hybrid epithet.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'IsHybrid'
exec sp_addextendedproperty N'MS_Description',N'Hybrid species A name: if IsHybrid is set yes. Refers to ID code of publ. TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'HybridANomID'
exec sp_addextendedproperty N'MS_Description',N'Hybrid species B name: if IsHybrid is set yes. Refers to ID code of publ. TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'HybridBNomID'
exec sp_addextendedproperty N'MS_Description',N'Original spelling of taxonomic name in the protologue publication. Recorded only, if different from current taxon name.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'OriginalNameSpelling'
exec sp_addextendedproperty N'MS_Description',N'Taxonomic placement (e.g. family or division) mentioned in the original description. This is NOT the current taxonomic placement!',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'OriginalTaxonPlacement'
exec sp_addextendedproperty N'MS_Description',N'Optional: The full text of the Latin description/diagnosis in the protologue.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'OriginalDiagnosisLatin'
exec sp_addextendedproperty N'MS_Description',N'Optional: The full text of the original description/diagnosis in the protologue, if a diagnosis in another language than Latin was provided. To be entered into the database only if no copyright is violated.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'OriginalDiagnosisOther'
exec sp_addextendedproperty N'MS_Description',N'Optional: A secondary reference indexing this taxon, e.g. Saccardo, Index of Fungi, etc. Entered as text, not as reference ID!',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'IndexingReference'
exec sp_addextendedproperty N'MS_Description',N'If imported from another database: The name of the database system or provider. Otherwise empty.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ImportedFrom'
exec sp_addextendedproperty N'MS_Description',N'If imported from another database: An ID value to later re-identify the record in that database may be stored here.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'ImportedID'
exec sp_addextendedproperty N'MS_Description',N'Empty for published names, filled w. the name of the responsible person for unpublished (''inedited'') names entered in the database. These may not appear in any reports, until specifically requested for a report that will be used to publish the name.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'IneditedResponsible'
exec sp_addextendedproperty N'MS_Description',N'Problem with data entry (not with the taxon).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'Problem'
exec sp_addextendedproperty N'MS_Description',N'Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'LogCreated_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when record was first entered (typed or imported) into this system.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'LogCreated_Date'
exec sp_addextendedproperty N'MS_Description',N'Calculated: Full, standardized name for the new taxon, calculated from genus, species and infraspecific epithet and authors. The value is unique, since it includes the author for higher taxa (genera, families) as well as for species.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'NameCache'
exec sp_addextendedproperty N'MS_Description',N'Calculated: Like NameCache, but italic and plain text is formatted using xhtml markup (/).',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'NameCache_html'
exec sp_addextendedproperty N'MS_Description',N'Calculated: Like NameCache, but without any authors. Duplicates may occur here, and taxa with homonyms can be detected using this attribute. Where no homonyms are found, names from other data sources may be compared based on this field alone.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'NameCache_NoAuthors'
exec sp_addextendedproperty N'MS_Description',N'Calculated: Like NameCache, but for species or infraspecific taxa the lowest rank name is printed first (''species-epitheton, Genus'' or ''variety (var.) species-epitheton, Genus'').',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'NameCache_inverted'
exec sp_addextendedproperty N'MS_Description',N'Unique ID for this record.',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'ActionID'
exec sp_addextendedproperty N'MS_Description',N'The taxon concerning this action. Refers to the NomID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'NomID'
exec sp_addextendedproperty N'MS_Description',N'Type of nomenclatural action: conservation, rejection, neo-, lecto- or epitypification, emendation. The sanctioning of a name should not be recorded here.',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'ActionType'
exec sp_addextendedproperty N'MS_Description',N'Additional information regarding the typification or conservation/rejection.',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'InternalNote'
exec sp_addextendedproperty N'MS_Description',N'Reference ID of the reference containing the nomenclatural action defined in ActionType. Refers to the ID code of the main ReferenceTitle table in the reference module (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'RefID'
exec sp_addextendedproperty N'MS_Description',N'A short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field).',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'RefDescriptionCache'
exec sp_addextendedproperty N'MS_Description',N'Relevant detail in a nomenclatural action reference; usually number of the page on which the action is described.',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'RefPage'
exec sp_addextendedproperty N'MS_Description',N'Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible.',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'LogCreated_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when record was first entered (typed or imported) into this system.',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'LogCreated_Date'
exec sp_addextendedproperty N'MS_Description',N'Only for typification actions: A user readable description of the specimen to which the typification refers (collection acronym + storage code / name under which specimen is stored).',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'TypificationSpecimenDescription'
exec sp_addextendedproperty N'MS_Description',N'Only for typification actions: If a specimen collection database subsystem is available, the relevant specimen unit identifier in that system is stored here (added in addition to a user readable TypificationSpecimenDescription).',N'user',N'dbo',N'table',N'TaxonomyActionOnName',N'column',N'TypificationSpecimenID'
exec sp_addextendedproperty N'MS_Description',N'The logical order of ranks (and display order), can be tested to find false hierarchizations or combinations Do not change the code, it is used in several restriction queries!',N'user',N'dbo',N'table',N'TaxonomyRank',N'column',N'RankID'
exec sp_addextendedproperty N'MS_Description',N'A unique user readable code for the taxonomic rank that is used in TaxonomyName.',N'user',N'dbo',N'table',N'TaxonomyRank',N'column',N'RankCode'
exec sp_addextendedproperty N'MS_Description',N'Single line description of the rank.',N'user',N'dbo',N'table',N'TaxonomyRank',N'column',N'Description'
exec sp_addextendedproperty N'MS_Description',N'Output elements for the rank, stored as a list of two elements (prefix string-semicolon-postfix string).',N'user',N'dbo',N'table',N'TaxonomyRank',N'column',N'Output'
exec sp_addextendedproperty N'MS_Description',N'Internal development notes regarding the taxonomic rank.',N'user',N'dbo',N'table',N'TaxonomyRank',N'column',N'Notes'
exec sp_addextendedproperty N'MS_Description',N'The order in which the entries are displayed.',N'user',N'dbo',N'table',N'TaxonomyRank',N'column',N'DisplayOrder'
exec sp_addextendedproperty N'MS_Description',N'The entries are displayed only if marked here.',N'user',N'dbo',N'table',N'TaxonomyRank',N'column',N'DisplayEnable'
exec sp_addextendedproperty N'MS_Description',N'Each project can implement a different taxonomic hierarchy. Refers to the common project definition in the user module.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'ProjectMarker'
exec sp_addextendedproperty N'MS_Description',N'Unique ID code of the higher taxon. Refers to the NomID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'NomID'
exec sp_addextendedproperty N'MS_Description',N'Next higher taxon (e.g. the family or subfamily if this taxon is a genus).',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'Parent_NomID'
exec sp_addextendedproperty N'MS_Description',N'Taxonomic remarks that will be output after the taxon in a report.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'ReportedNote'
exec sp_addextendedproperty N'MS_Description',N'An internal note of the responsible person concerning this taxon. This information is NOT included in any report.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'InternalNote'
exec sp_addextendedproperty N'MS_Description',N'If the classification is based on a publication: the reference ID of that work.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'RefID'
exec sp_addextendedproperty N'MS_Description',N'If the classification is based on a publication: a short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field).',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'RefDescriptionCache'
exec sp_addextendedproperty N'MS_Description',N'If the classification is based on a publication: relevant detail; usually page number where the opinion is published.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'RefPage'
exec sp_addextendedproperty N'MS_Description',N'The person responsible for grouping this taxon into a higher taxon.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'Responsible'
exec sp_addextendedproperty N'MS_Description',N'Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'LogCreated_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when record was first entered (typed or imported) into this system.',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'LogCreated_Date'
exec sp_addextendedproperty N'MS_Description',N'CALCULATED FIELD: List of higher taxa for faster access: "div.; class; ord.; fam.".',N'user',N'dbo',N'table',N'TaxonomyHierarchy',N'column',N'HierarchyListCache'
exec sp_addextendedproperty N'MS_Description',N'Each project can have a different opinion regarding synonmy. Refers to the common project definition in the user module.',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'ProjectMarker'
exec sp_addextendedproperty N'MS_Description',N'Synonym name. Refers to the NomID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'NomID'
exec sp_addextendedproperty N'MS_Description',N'0 = only a single accepted name is possible for a given synonym. 1..255 = multiple valid names are allowed for pro parte (''p.p.'') synonyms. Use 1 for the first pro parte name, 2 for the second, and so on. Please do not use 0 for 1st, 2nd, etc. name!',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'ProParteMarker'
exec sp_addextendedproperty N'MS_Description',N'Accepted name within a project. Refers to the NomID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'Accepted_NomID'
exec sp_addextendedproperty N'MS_Description',N'An internal note of the responsible person concerning this synonymization. This information is NOT included in any report.',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'InternalNote'
exec sp_addextendedproperty N'MS_Description',N'If the synonymization is based on a publication: the reference ID of that work. Refers to the ID code of the main ReferenceTitle table in the reference module (= foreign key).',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'SynonymRefID'
exec sp_addextendedproperty N'MS_Description',N'If the synonymization is based on a publication: a short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field).',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'RefDescriptionCache'
exec sp_addextendedproperty N'MS_Description',N'If the synonymization is based on a publication: relevant detail; usually page number where the synonymization is published.',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'RefPage'
exec sp_addextendedproperty N'MS_Description',N'The person responsible for this synonymy opinion.',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'Responsible'
exec sp_addextendedproperty N'MS_Description',N'Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible.',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'LogCreated_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when record was first entered (typed or imported) into this system.',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'LogCreated_Date'
exec sp_addextendedproperty N'MS_Description',N'Unique ID code for the opinion (primary key). Note that the combination of NomID, ProjectMarker, and Responsible must also be unique and not null (candidate key).',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'OpinionID'
exec sp_addextendedproperty N'MS_Description',N'The taxon this opinion refers to. Refers to the NomID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'NomID'
exec sp_addextendedproperty N'MS_Description',N'Each project can have a different opinion regarding synonmy. Refers to the common project definition in the user module.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'ProjectMarker'
exec sp_addextendedproperty N'MS_Description',N'The person responsible for this opinion/assessment on a taxon.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'Responsible'
exec sp_addextendedproperty N'MS_Description',N'Working status of taxonomic name in current project: I=Included, D=Doubtful, E=Excluded, etc. Synonyms of accepted taxa should have status I. The report may be grouped by these attributes.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'WorkingStatus'
exec sp_addextendedproperty N'MS_Description',N'... categories for effective/valid/legitimate... esp. ''nom. illeg.'', ''nom. inval.'', ''nom. nudum'', etc.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'NomenclaturalStatus'
exec sp_addextendedproperty N'MS_Description',N'Taxonomic remarks that will be output after the taxon in a report. This includes an explanation, esp. the relevant articles in the code of nomenclature.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'ReportedNote'
exec sp_addextendedproperty N'MS_Description',N'An internal note of the responsible person concerning this name. This information is NOT included in any report.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'InternalNote'
exec sp_addextendedproperty N'MS_Description',N'If the opinion is based on a publication: the reference ID of that work.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'RefID'
exec sp_addextendedproperty N'MS_Description',N'If the opinion is based on a publication: a short human readable description of the reference, obtained through the RefID from the reference subsystem (calculated field).',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'RefDescriptionCache'
exec sp_addextendedproperty N'MS_Description',N'If the opinion is based on a publication: relevant detail; usually page number where the opinion is published.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'RefPage'
exec sp_addextendedproperty N'MS_Description',N'A temporary marker or keyword assigned by user for searching and sorting purposes while a group is reviewed. Any information can be entered here, but it will be visible only internally.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'UserMarker1'
exec sp_addextendedproperty N'MS_Description',N'A temporary marker or keyword assigned by user for searching and sorting purposes while a group is reviewed. Any information can be entered here, but it will be visible only internally.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'UserMarker2'
exec sp_addextendedproperty N'MS_Description',N'Temporary problem with data entry (not with the taxon, cmp. ReportedNote/InternalNote for permanent notes on problems).',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'Problem'
exec sp_addextendedproperty N'MS_Description',N'Name of user responsible for a first plausibility or consistency check. User and Date are automatically filled if ''Original check'' performed directly.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'CheckPlausible_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when plausibility/consistency was checked (i.e. data entry rules and spelling errors checked, no comparison with original publication).',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'CheckPlausible_Date'
exec sp_addextendedproperty N'MS_Description',N'Name of user responsible for comparison of taxon record with original publication.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'CheckOriginal_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when entry was compared with the original publication.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'CheckOriginal_Date'
exec sp_addextendedproperty N'MS_Description',N'Name of user who first entered (typed or imported) the data. This is the operator (or typist) name, which may be different from the person responsible.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'LogCreated_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when record was first entered (typed or imported) into this system.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'LogCreated_Date'
exec sp_addextendedproperty N'MS_Description',N'Name of user responsible for final review of taxon name, the presence of a name here indicates that the record is ready for publication.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'FinalCheck_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time when final check was performed.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'FinalCheck_Date'
exec sp_addextendedproperty N'MS_Description',N'Unique ID for a cited specimen (primary key).',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'CitedSpecimenID'
exec sp_addextendedproperty N'MS_Description',N'All cited specimens must refer to a taxonomic opinion that defines a NomID, project marker, and responsible scientist (foreign key).',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'OpinionID'
exec sp_addextendedproperty N'MS_Description',N'Standard abbreviation of the collection from which the studied specimen was obtained (e.g. ''B'' for Berlin herbarium). The full name is used if no acronym is available.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'CollectionAcronym'
exec sp_addextendedproperty N'MS_Description',N'Used only when a specimen record is available in a compatible collection database subsystem; refers to CollectionSpecimenID in that system (foreign key).',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'CollectionSpecimenID'
exec sp_addextendedproperty N'MS_Description',N'Optionally used for accession number or storage location name (which may be different from current scientific name!), esp. if CollectionSpecimenID can not be used because no compatible collection database subsystem is available.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'CollectionSpecimenDescription'
exec sp_addextendedproperty N'MS_Description',N'Type, holotype, syntype, paratype, isotype, lectotype, neotype, epitype, etc.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'TypeStatus'
exec sp_addextendedproperty N'MS_Description',N'Annotation regarding the studied specimen that will be output after the taxon in a report.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'ReportedNote'
exec sp_addextendedproperty N'MS_Description',N'An internal note of the responsible person concerning the studied specimen. This information is NOT included in any report.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'InternalNote'
exec sp_addextendedproperty N'MS_Description',N'False = the specimen is known to exist, but has not (perhaps not yet) been studied by the person named under Responsible.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'Studied'
exec sp_addextendedproperty N'MS_Description',N'False = the information on the studied specimen is suppressed in reports, but is maintained in the database.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'IncludeInReport'
exec sp_addextendedproperty N'MS_Description',N'The ID of the taxon that was changed by the user. Refers to the NomID code of TaxonomyName (= foreign key).',N'user',N'dbo',N'table',N'TaxonomyChanges',N'column',N'NomID'
exec sp_addextendedproperty N'MS_Description',N'Attributes and data affected by changes, details of changes.',N'user',N'dbo',N'table',N'TaxonomyChanges',N'column',N'Changes'
exec sp_addextendedproperty N'MS_Description',N'Name of user who last updated the record. This is the operator (or typist) name, which may be different from the person responsible.',N'user',N'dbo',N'table',N'TaxonomyChanges',N'column',N'LogUpdated_User'
exec sp_addextendedproperty N'MS_Description',N'Date and time of last update of the record.',N'user',N'dbo',N'table',N'TaxonomyChanges',N'column',N'LogUpdated_Date'
exec sp_addextendedproperty N'MS_Description',N'(system attribute used in database replication).',N'user',N'dbo',N'table',N'TaxonomyChanges',N'column',N's_GUID'
exec sp_addextendedproperty N'MS_Description',N'(system attribute used in database replication).',N'user',N'dbo',N'table',N'TaxonomyChanges',N'column',N's_Generation'
exec sp_addextendedproperty N'MS_Description',N'(system attribute used in database replication).',N'user',N'dbo',N'table',N'TaxonomyChanges',N'column',N's_Lineage'
GO
*** Remove this comment line to enable creation of column description for MS SQL Server 2000 ***/