/* SQL DDL: Create an implementation of the model using SQL data definition language */
/* Note: You may want to change some field types to improve the implementation on your DBMS */
/* Note: Comments such as this may not be supported by your system and may have to be removed */
/* Note: Tested on MS SQL Server 2000 and !TODO! PostgreSQL !TODO! */
/* Note: MS SQL Server 2000: remove comments at end of file to enable creation of column descriptions */
/* Note: CREATE INDEX, CONSTRAINT (other than primary or unique key) and Foreign key constraints are missing at the moment, to be added later */
/* Generated on 16.Feb.2001 13:23 by Diversity Workbench: Diversity Information Model Documenter, Vers. 1.4 (G. Hagedorn) */
/*=== Table: TaxonomyName ===*/
/* Taxonomy: Supertype entity, providing a nomenclatural ID for all names introduced as taxa (infraspecific, species, genus, family, etc.). Contains only objective information; all scientific opinion is placed in ...Opinion, ...Synonymy, & ...Hierarchy. */
/* NomID: Unique ID code for the nomenclatural name (primary key). */
/* 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). */
/* HigherTaxonName: If rank is above species: Name of taxon above species level (currently accepted spelling). Includes infrageneric taxon names, genera, families, etc. */
/* SpeciesGenusID: If rank is species or below: NomID code of the Genus name. Refers to TaxonomyName (= foreign key) where TaxonomicRank = genus. */
/* SpeciesEpithet: If rank is species or below: Species epithet, for example 'alba' in 'Abies alba Miller' (currently accepted spelling). */
/* CreationType: T: New taxon; C: new combination based on a previously publ. other name ('comb. nov.'), N: new name ('nom.nov.') introduced to replace a homonym (may occur for genera!), V: validation of previously invalidly published taxon name ('ex'), or U: for unknown. */
/* 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 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 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). */
/* InfraspecificAutonym: 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!). */
/* TaxonAuthors: For all taxonomic ranks: Author(s) of the taxon, abbreviated according to authors standard, including basionym authors in '()', validating authors ('ex'), optionally including sanctioning authors or "in" authors. */
/* ConceptSuffix: 'sensu' or 'emend.' author, or 's.str.'/'s.lat.'. Provided as sep. attribute to simplify later changes (multiple taxon concepts can be based on a single name, so this really belongs into a separate entity). Compare '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; used only when default reference description is unsatisfactorily (esp. abbreviated tax. literature 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: Calculated: cached reference description, obtained through the ProtologueRefID from the references subsystems. */
/* ProtologueRefPage: First page of protologue (original description) in the reference. */
/* ProtologueRefReprintPagination: 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. */
/* 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,
TaxonomicRank TINYINT NOT NULL,
HigherTaxonName NATIONAL CHARACTER VARYING(255) NOT NULL UNIQUE,
SpeciesGenusID INTEGER NOT NULL,
SpeciesEpithet NATIONAL CHARACTER VARYING(255) NOT NULL,
CreationType NATIONAL CHARACTER VARYING(1) NOT NULL DEFAULT 'U',
BasionymNomID INTEGER NULL,
ValidatedNomID INTEGER NULL,
InfraspecificEpithet NATIONAL CHARACTER VARYING(255) NULL,
InfraspecificAutonym BOOLEAN NULL DEFAULT 0,
TaxonAuthors NATIONAL CHARACTER VARYING(255) NULL,
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,
ProtologueRefReprintPagination BOOLEAN NOT 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) NOT NULL,
LogCreated_Date DATETIME NOT NULL DEFAULT GETDATE(),
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 ===*/
/* Taxonomy: Secondary action, affecting the status of a taxon. Examples are neo-, lecto- or epitypifications and conservation/rejection. */
/* 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: Calculated: cached reference description, obtained through the RefID from the references subsystems. */
/* 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 GETDATE(),
TypificationSpecimenDescription NATIONAL CHARACTER VARYING(255) NULL,
TypificationSpecimenID NATIONAL CHARACTER VARYING(255) NULL
)
/*=== Table: TaxonomyOpinion ===*/
/* Taxonomy: Opinion or comment relating to the status (valid, accepted, etc.) of a nomenclatural name. */
/* 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. */
/* Status: Status of taxonomic name: A=accepted, D=Doubtful, E=Excluded, etc. Synonyms of accepted taxa should have status A. The report may be grouped by this attributes. */
/* ReportedTypes: List of known type specimens, use a '!' after collection name/abbreviation to indicate that this material has been studied by the responsible person. Included in the report. */
/* ReportedNote: Taxonomic remarks that will be output after the taxon in a report. */
/* 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: the reference description of that work. */
/* 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. */
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,
Status NATIONAL CHARACTER VARYING(1) NULL,
ReportedTypes 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 GETDATE()
)
/*=== Table: TaxonomySynonymy ===*/
/* Taxonomy: Synonymization of species. Each responsible user can create an independent system. */
/* 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). */
/* ObligateSynonym: True (= checked) indicates an obligate synonym, based on the same type; False (= empty) a facultative (or taxonomic) synonym. Null (= gray checkbox) indicates that the synonymization status could not be decided. */
/* InternalNote: An internal note of the responsible person concerning this synonymization. This information is NOT included in any report. */
/* RefID: 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: the reference description of that work. */
/* 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,
ObligateSynonym BOOLEAN NULL DEFAULT Null,
InternalNote NATIONAL TEXT NOT 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) NOT NULL,
LogCreated_Date DATETIME NOT NULL DEFAULT GETDATE(),
PRIMARY KEY (ProjectMarker,NomID,ProParteMarker)
)
/*=== Table: TaxonomyHierarchy ===*/
/* Taxonomy: Hierarchy above the species. Each responsible user can create an independent taxonomic system. */
/* 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: the reference description of that work. */
/* 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 NOT 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 GETDATE(),
HierarchyListCache NATIONAL CHARACTER VARYING(255) NULL,
PRIMARY KEY (ProjectMarker,NomID)
)
/*=== Table: TaxonomyChanges ===*/
/* Taxonomy: A technical log of changes of taxonomic or nomenclatural information maintained automatically by the database (user, date, entities & attributes affected). */
/* 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)
)
/*=== Table: TaxonomyCitedSpecimen ===*/
/* Taxonomy: Specimen (esp. type specimens) that have been studied or shall be cited in a taxonomic monograph. */
/* CitedSpecimenID: Unique ID for the record (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 specimen collection from which the studied specimen was obtained (e.g. 'B' for Berlin herbarium). */
/* CollectionSpecimenID: Used only when a specimen record is available in a compatible collection database subsystem; refers to CollectionSpecimenID in that system (foreign key). */
/* 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 can be 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,
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 True
)
/*=== Table: TaxonomyRank ===*/
/* Taxonomy: tax. ranks ranging from subforma to superregnum. */
/* 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. */
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
)
ALTER TABLE TaxonomyName ADD
FOREIGN KEY (NomID) REFERENCES TaxonomyHierarchy (Parent_NomID),
FOREIGN KEY (NomID) REFERENCES TaxonomyName (TypeGenus_NomID),
FOREIGN KEY (NomID) REFERENCES TaxonomyName (TypeSpecies_NomID),
FOREIGN KEY (NomID) REFERENCES TaxonomyName (SpeciesGenusID),
FOREIGN KEY (NomID) REFERENCES TaxonomyName (ValidatedNomID),
FOREIGN KEY (NomID) REFERENCES TaxonomyName (BasionymNomID),
FOREIGN KEY (NomID) REFERENCES TaxonomySynonymy (NomID),
FOREIGN KEY (NomID) REFERENCES TaxonomySynonymy (Accepted_NomID),
FOREIGN KEY (NomID) REFERENCES TaxonomyActionOnName (NomID) ON DELETE CASCADE,
FOREIGN KEY (NomID) REFERENCES TaxonomyHierarchy (NomID),
FOREIGN KEY (NomID) REFERENCES TaxonomyOpinion (NomID)
ALTER TABLE TaxonomyOpinion ADD
FOREIGN KEY (OpinionID) REFERENCES TaxonomyCitedSpecimen (OpinionID) ON UPDATE CASCADE ON DELETE CASCADE
ALTER TABLE TaxonomyRank ADD
FOREIGN KEY (RankID) REFERENCES TaxonomyName (TaxonomicRank) ON UPDATE CASCADE
/*** Remove this comment 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'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'If rank is above species: Name of taxon above species level (currently accepted spelling). Includes infrageneric taxon names, genera, families, etc.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'HigherTaxonName'
exec sp_addextendedproperty N'MS_Description',N'If rank is species or below: NomID code of the Genus name. Refers to TaxonomyName (= foreign key) where TaxonomicRank = genus.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'SpeciesGenusID'
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'T: New taxon; C: new combination based on a previously publ. other name (''comb. nov.''), N: new name (''nom.nov.'') introduced to replace a homonym (may occur for genera!), V: validation of previously invalidly published 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'Basionym if CreationType is ''comb. nov.'' or replacement (''nom. nov.''), of another name based on the same type material. Refers to ID code of 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 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'InfraspecificAutonym'
exec sp_addextendedproperty N'MS_Description',N'For all taxonomic ranks: Author(s) of the taxon, abbreviated according to authors standard, including basionym authors in ''()'', validating authors (''ex''), optionally including sanctioning authors or "in" authors.',N'user',N'dbo',N'table',N'TaxonomyName',N'column',N'TaxonAuthors'
exec sp_addextendedproperty N'MS_Description',N'''sensu'' or ''emend.'' author, or ''s.str.''/''s.lat.''. Provided as sep. attribute to simplify later changes (multiple taxon concepts can be based on a single name, so this really belongs into a separate entity). Compare ''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; used only when default reference description is unsatisfactorily (esp. abbreviated tax. literature 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'Calculated: cached reference description, obtained through the ProtologueRefID from the references subsystems.',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'ProtologueRefReprintPagination'
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'Calculated: cached reference description, obtained through the RefID from the references subsystems.',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'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'Status of taxonomic name: A=accepted, D=Doubtful, E=Excluded, etc. Synonyms of accepted taxa should have status A. The report may be grouped by this attributes.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'Status'
exec sp_addextendedproperty N'MS_Description',N'List of known type specimens, use a ''!'' after collection name/abbreviation to indicate that this material has been studied by the responsible person. Included in the report.',N'user',N'dbo',N'table',N'TaxonomyOpinion',N'column',N'ReportedTypes'
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'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: the reference description of that work.',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'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'True (= checked) indicates an obligate synonym, based on the same type; False (= empty) a facultative (or taxonomic) synonym. Null (= gray checkbox) indicates that the synonymization status could not be decided.',N'user',N'dbo',N'table',N'TaxonomySynonymy',N'column',N'ObligateSynonym'
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'RefID'
exec sp_addextendedproperty N'MS_Description',N'If the synonymization is based on a publication: the reference description of that work.',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'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: the reference description of that work.',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'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'
exec sp_addextendedproperty N'MS_Description',N'Unique ID for the record (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 specimen collection from which the studied specimen was obtained (e.g. ''B'' for Berlin herbarium).',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'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 can be maintained in the database.',N'user',N'dbo',N'table',N'TaxonomyCitedSpecimen',N'column',N'IncludeInReport'
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'
GO
/*** END column description for MS SQL Server 2000 ***/