Difference between revisions of "Template:ChadoTable stockcollection"

From GMOD
Jump to: navigation, search
(Table definition, first upload on 2010/11/22.)
 
(Table definition for Chado on 2010/11/24)
Line 1: Line 1:
<noinclude>{{ChadoTableTemplateHeader}}</noinclude><protect>{{ChadoTableDesc|Stock|stockcollection|The lab or stock center distributing the stocks in their collection.}}
+
<protect><noinclude>{{ChadoTableTemplateHeader}}</noinclude>
 +
{{ChadoTableDesc|Stock|stockcollection|The lab or stock center distributing the stocks in their collection.}}
 
{{ChadoColumnsHeader|Stock|stockcollection}}
 
{{ChadoColumnsHeader|Stock|stockcollection}}
{{ChadoColumnDesc||stockcollection_id|serial|''PRIMARY KEY''
+
{{ChadoColumnDesc||stockcollection_id|serial|''PRIMARY KEY''<br />
 
+
 
}}
 
}}
{{ChadoColumnDesc|{{ChadoModuleTableLink|CV|cvterm}}|type_id|integer|''UNIQUE#1''
+
{{ChadoColumnDesc|{{ChadoModuleTableLink|CV|cvterm}}|type_id|integer|''UNIQUE#1''<br />
 
+
''NOT NULL''<br />
''NOT NULL''
+
 
+
 
type_id is the collection type cv.}}
 
type_id is the collection type cv.}}
 
{{ChadoColumnDesc|{{ChadoModuleTableLink|Contact|contact}}|contact_id|integer|contact_id links to the contact information for the collection.}}
 
{{ChadoColumnDesc|{{ChadoModuleTableLink|Contact|contact}}|contact_id|integer|contact_id links to the contact information for the collection.}}
 
{{ChadoColumnDesc||name|character varying(255)|name is the collection.}}
 
{{ChadoColumnDesc||name|character varying(255)|name is the collection.}}
{{ChadoColumnDesc||uniquename|text|''UNIQUE#1''
+
{{ChadoColumnDesc||uniquename|text|''UNIQUE#1''<br />
 
+
''NOT NULL''<br />
''NOT NULL''
+
 
+
 
uniqename is the value of the collection cv.}}
 
uniqename is the value of the collection cv.}}
 
{{ChadoColumnsFooter}}
 
{{ChadoColumnsFooter}}
  
 
{{ChadoTablesReferencingHeader|stockcollection}}
 
{{ChadoTablesReferencingHeader|stockcollection}}
 
+
* {{ChadoReferencingTable|Stock|stockcollection_stock}}
* None.
+
* {{ChadoReferencingTable|Stock|stockcollectionprop}}
 
</protect>
 
</protect>

Revision as of 19:23, 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:

  1. The module page for the module the table is a part of. This is where updates and comments should be posted.
  2. The Chado Tables page, which lists all tables.

You can include this template anywhere you want to show the table description.


Table: stockcollection
Module: Stock

The lab or stock center distributing the stocks in their collection.

stockcollection columns
FK Name Type Description
stockcollection_id serial PRIMARY KEY
cvterm type_id integer UNIQUE#1

NOT NULL
type_id is the collection type cv.

contact contact_id integer contact_id links to the contact information for the collection.
name character varying(255) name is the collection.
uniquename text UNIQUE#1

NOT NULL
uniqename is the value of the collection cv.

Tables referencing stockcollection via foreign key constraints: