NOTE: We are working on migrating this site away from MediaWiki, so editing pages will be disabled for now.
Difference between revisions of "Template:ChadoTable stock"
(Table definition, first upload on 2010/11/22.) |
(Table definition for Chado on 2010/11/24) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{ChadoTableTemplateHeader}}</noinclude> | + | <protect><noinclude>{{ChadoTableTemplateHeader}}</noinclude> |
+ | {{ChadoTableDesc|Stock|stock|Any stock can be globally identified by the | ||
combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.}} | combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.}} | ||
{{ChadoColumnsHeader|Stock|stock}} | {{ChadoColumnsHeader|Stock|stock}} | ||
− | {{ChadoColumnDesc||stock_id|serial|''PRIMARY KEY'' | + | {{ChadoColumnDesc||stock_id|serial|''PRIMARY KEY''<br /> |
− | + | ||
}} | }} | ||
{{ChadoColumnDesc|{{ChadoModuleTableLink|General|dbxref}}|dbxref_id|integer|The dbxref_id is an optional primary stable identifier for this stock. Secondary indentifiers and external dbxrefs go in table: stock_dbxref.}} | {{ChadoColumnDesc|{{ChadoModuleTableLink|General|dbxref}}|dbxref_id|integer|The dbxref_id is an optional primary stable identifier for this stock. Secondary indentifiers and external dbxrefs go in table: stock_dbxref.}} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Organism|organism}}|organism_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Organism|organism}}|organism_id|integer|''UNIQUE#1''<br /> |
− | + | ||
The organism_id is the organism to which the stock belongs. This column should only be left blank if the organism cannot be determined.}} | The organism_id is the organism to which the stock belongs. This column should only be left blank if the organism cannot be determined.}} | ||
{{ChadoColumnDesc||name|character varying(255)|The name is a human-readable local name for a stock.}} | {{ChadoColumnDesc||name|character varying(255)|The name is a human-readable local name for a stock.}} | ||
− | {{ChadoColumnDesc||uniquename|text|''UNIQUE#1'' | + | {{ChadoColumnDesc||uniquename|text|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
{{ChadoColumnDesc||description|text|The description is the genetic description provided in the stock list.}} | {{ChadoColumnDesc||description|text|The description is the genetic description provided in the stock list.}} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|CV|cvterm}}|type_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|CV|cvterm}}|type_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
The type_id foreign key links to a controlled vocabulary of stock types. The would include living stock, genomic DNA, preserved specimen. Secondary cvterms for stocks would go in stock_cvterm.}} | The type_id foreign key links to a controlled vocabulary of stock types. The would include living stock, genomic DNA, preserved specimen. Secondary cvterms for stocks would go in stock_cvterm.}} | ||
− | {{ChadoColumnDesc||is_obsolete|boolean|''NOT NULL'' | + | {{ChadoColumnDesc||is_obsolete|boolean|''NOT NULL''<br /> |
− | + | ''DEFAULT ''false<br /> | |
− | ''DEFAULT ''false | + | |
− | + | ||
}} | }} | ||
{{ChadoColumnsFooter}} | {{ChadoColumnsFooter}} | ||
{{ChadoTablesReferencingHeader|stock}} | {{ChadoTablesReferencingHeader|stock}} | ||
− | + | * {{ChadoReferencingTable|Natural Diversity|nd_experiment_stock}} | |
− | * | + | * {{ChadoReferencingTable|Stock|stock_cvterm}} |
+ | * {{ChadoReferencingTable|Stock|stock_dbxref}} | ||
+ | * {{ChadoReferencingTable|Stock|stock_genotype}} | ||
+ | * {{ChadoReferencingTable|Stock|stock_pub}} | ||
+ | * {{ChadoReferencingTable|Stock|stock_relationship}} | ||
+ | * {{ChadoReferencingTable|Stock|stockcollection_stock}} | ||
+ | * {{ChadoReferencingTable|Stock|stockprop}} | ||
</protect> | </protect> |
Revision as of 19:20, 24 November 2010
This template is a Chado Table Template. It defines a single table from the Chado schema, and every Chado table has a template like this one. This template is automatically included in two places:
- The module page for the module the table is a part of. This is where updates and comments should be posted.
- The Chado Tables page, which lists all tables.
You can include this template anywhere you want to show the table description.
Table: | stock |
Module: | Stock |
Any stock can be globally identified by the combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.
FK | Name | Type | Description |
---|---|---|---|
stock_id | serial | PRIMARY KEY | |
dbxref | dbxref_id | integer | The dbxref_id is an optional primary stable identifier for this stock. Secondary indentifiers and external dbxrefs go in table: stock_dbxref. |
organism | organism_id | integer | UNIQUE#1 The organism_id is the organism to which the stock belongs. This column should only be left blank if the organism cannot be determined. |
name | character varying(255) | The name is a human-readable local name for a stock. | |
uniquename | text | UNIQUE#1 NOT NULL | |
description | text | The description is the genetic description provided in the stock list. | |
cvterm | type_id | integer | UNIQUE#1 NOT NULL |
is_obsolete | boolean | NOT NULL DEFAULT false
|
Tables referencing stock via foreign key constraints:
- nd_experiment_stock
- stock_cvterm
- stock_dbxref
- stock_genotype
- stock_pub
- stock_relationship
- stockcollection_stock
- stockprop