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 nd experiment phenotype"

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|Natural Diversity|nd_experiment_phenotype|Linking table: experiments to the phenotypes they produce. There is a one-to-one relationship between an experiment and a phenotype since each phenotype record should point to one experiment. Add a new experiment_id for each phenotype record.}}
+
<protect><noinclude>{{ChadoTableTemplateHeader}}</noinclude>
 +
{{ChadoTableDesc|Natural Diversity|nd_experiment_phenotype|Linking table: experiments to the phenotypes they produce. There is a one-to-one relationship between an experiment and a phenotype since each phenotype record should point to one experiment. Add a new experiment_id for each phenotype record.}}
 
{{ChadoColumnsHeader|Natural Diversity|nd_experiment_phenotype}}
 
{{ChadoColumnsHeader|Natural Diversity|nd_experiment_phenotype}}
{{ChadoColumnDesc||nd_experiment_phenotype_id|serial|''PRIMARY KEY''
+
{{ChadoColumnDesc||nd_experiment_phenotype_id|serial|''PRIMARY KEY''<br />
 
+
 
}}
 
}}
{{ChadoColumnDesc|{{ChadoModuleTableLink|Natural Diversity|nd_experiment}}|nd_experiment_id|integer|''UNIQUE''
+
{{ChadoColumnDesc|{{ChadoModuleTableLink|Natural Diversity|nd_experiment}}|nd_experiment_id|integer|''UNIQUE''<br />
 
+
''NOT NULL''<br />
''NOT NULL''
+
 
+
 
}}
 
}}
{{ChadoColumnDesc|{{ChadoModuleTableLink|Phenotype|phenotype}}|phenotype_id|integer|''NOT NULL''
+
{{ChadoColumnDesc|{{ChadoModuleTableLink|Phenotype|phenotype}}|phenotype_id|integer|''NOT NULL''<br />
 
+
 
}}
 
}}
 
{{ChadoColumnsFooter}}
 
{{ChadoColumnsFooter}}
  
 
{{ChadoTablesReferencingHeader|nd_experiment_phenotype}}
 
{{ChadoTablesReferencingHeader|nd_experiment_phenotype}}
 
+
* None.</protect>
* None.
+
</protect>
+

Latest revision as of 19:22, 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: nd_experiment_phenotype
Module: Natural Diversity

Linking table: experiments to the phenotypes they produce. There is a one-to-one relationship between an experiment and a phenotype since each phenotype record should point to one experiment. Add a new experiment_id for each phenotype record.

nd_experiment_phenotype columns
FK Name Type Description
nd_experiment_phenotype_id serial PRIMARY KEY
nd_experiment nd_experiment_id integer UNIQUE

NOT NULL

phenotype phenotype_id integer NOT NULL


Tables referencing nd_experiment_phenotype via foreign key constraints:

  • None.