Difference between revisions of "Template:ChadoTable tableinfo"
From GMOD
(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|General|tableinfo|}} | ||
{{ChadoColumnsHeader|General|tableinfo}} | {{ChadoColumnsHeader|General|tableinfo}} | ||
− | {{ChadoColumnDesc||tableinfo_id|serial|''PRIMARY KEY'' | + | {{ChadoColumnDesc||tableinfo_id|serial|''PRIMARY KEY''<br /> |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc||name|character varying(30)|''UNIQUE'' | + | {{ChadoColumnDesc||name|character varying(30)|''UNIQUE''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
{{ChadoColumnDesc||primary_key_column|character varying(30)|}} | {{ChadoColumnDesc||primary_key_column|character varying(30)|}} | ||
− | {{ChadoColumnDesc||is_view|integer|''NOT NULL'' | + | {{ChadoColumnDesc||is_view|integer|''NOT NULL''<br /> |
− | + | ||
}} | }} | ||
{{ChadoColumnDesc||view_on_table_id|integer|}} | {{ChadoColumnDesc||view_on_table_id|integer|}} | ||
{{ChadoColumnDesc||superclass_table_id|integer|}} | {{ChadoColumnDesc||superclass_table_id|integer|}} | ||
− | {{ChadoColumnDesc||is_updateable|integer|''NOT NULL'' | + | {{ChadoColumnDesc||is_updateable|integer|''NOT NULL''<br /> |
− | + | ''DEFAULT ''1<br /> | |
− | ''DEFAULT ''1 | + | |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc||modification_date|date|''NOT NULL'' | + | {{ChadoColumnDesc||modification_date|date|''NOT NULL''<br /> |
− | + | ''DEFAULT ''now()<br /> | |
− | ''DEFAULT ''now() | + | |
− | + | ||
}} | }} | ||
{{ChadoColumnsFooter}} | {{ChadoColumnsFooter}} | ||
{{ChadoTablesReferencingHeader|tableinfo}} | {{ChadoTablesReferencingHeader|tableinfo}} | ||
− | + | * {{ChadoReferencingTable|Mage|control}} | |
− | * | + | * {{ChadoReferencingTable|Mage|magedocumentation}} |
</protect> | </protect> |
Revision as of 19:21, 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: | tableinfo |
Module: | General |
FK | Name | Type | Description |
---|---|---|---|
tableinfo_id | serial | PRIMARY KEY | |
name | character varying(30) | UNIQUE NOT NULL | |
primary_key_column | character varying(30) | ||
is_view | integer | NOT NULL | |
view_on_table_id | integer | ||
superclass_table_id | integer | ||
is_updateable | integer | NOT NULL DEFAULT 1 | |
modification_date | date | NOT NULL DEFAULT now()
|
Tables referencing tableinfo via foreign key constraints: