Difference between revisions of "Template:ChadoTable pubauthor"
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|Publication|pubauthor|An author for a publication. Note the denormalisation (hence lack of _ in table name) - this is deliberate as it is in general too hard to assign IDs to authors.}} | ||
{{ChadoColumnsHeader|Publication|pubauthor}} | {{ChadoColumnsHeader|Publication|pubauthor}} | ||
− | {{ChadoColumnDesc||pubauthor_id|serial|''PRIMARY KEY'' | + | {{ChadoColumnDesc||pubauthor_id|serial|''PRIMARY KEY''<br /> |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc|{{ChadoModuleTableLink|Publication|pub}}|pub_id|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc|{{ChadoModuleTableLink|Publication|pub}}|pub_id|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
}} | }} | ||
− | {{ChadoColumnDesc||rank|integer|''UNIQUE#1'' | + | {{ChadoColumnDesc||rank|integer|''UNIQUE#1''<br /> |
− | + | ''NOT NULL''<br /> | |
− | ''NOT NULL'' | + | |
− | + | ||
Order of author in author list for this pub - order is important.}} | Order of author in author list for this pub - order is important.}} | ||
− | {{ChadoColumnDesc||editor|boolean|''DEFAULT ''false | + | {{ChadoColumnDesc||editor|boolean|''DEFAULT ''false<br /> |
− | + | ||
Indicates whether the author is an editor for linked publication. Note: this is a boolean field but does not follow the normal chado convention for naming booleans.}} | Indicates whether the author is an editor for linked publication. Note: this is a boolean field but does not follow the normal chado convention for naming booleans.}} | ||
− | {{ChadoColumnDesc||surname|character varying(100)|''NOT NULL'' | + | {{ChadoColumnDesc||surname|character varying(100)|''NOT NULL''<br /> |
− | + | ||
}} | }} | ||
{{ChadoColumnDesc||givennames|character varying(100)|First name, initials}} | {{ChadoColumnDesc||givennames|character varying(100)|First name, initials}} | ||
Line 25: | Line 19: | ||
{{ChadoTablesReferencingHeader|pubauthor}} | {{ChadoTablesReferencingHeader|pubauthor}} | ||
− | + | * None.</protect> | |
− | * None. | + | |
− | </protect> | + |
Latest 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:
- 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: | pubauthor |
Module: | Publication |
An author for a publication. Note the denormalisation (hence lack of _ in table name) - this is deliberate as it is in general too hard to assign IDs to authors.
FK | Name | Type | Description |
---|---|---|---|
pubauthor_id | serial | PRIMARY KEY | |
pub | pub_id | integer | UNIQUE#1 NOT NULL |
rank | integer | UNIQUE#1 NOT NULL | |
editor | boolean | DEFAULT false Indicates whether the author is an editor for linked publication. Note: this is a boolean field but does not follow the normal chado convention for naming booleans. | |
surname | character varying(100) | NOT NULL | |
givennames | character varying(100) | First name, initials | |
suffix | character varying(100) | Jr., Sr., etc |
Tables referencing pubauthor via foreign key constraints:
- None.