Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | INT | 10 | √ | null |
|
|
Primary id for this table. This uniquely identifies the row. |
|||
name | VARCHAR | 255 |
|
|
Phenotype full name. |
|||||
short_name | CHAR | 10 | √ | null |
|
|
Shortened name for the phenotype. This is used in table columns where space is an issue. |
|||
description | MEDIUMTEXT | 16777215 | √ | null |
|
|
Full description of the phenotype. This should contain enough infomation to accurately identify the phenoytpe and how it was recorded. |
|||
datatype | enum('float', 'int', 'char') | 5 | int |
|
|
Defines the data type of the phenotype. This can be of float, int or char types. |
||||
unit_id | INT | 10 | √ | null |
|
|
Foreign Key to units (units.id). |
|||
created_on | DATETIME | 26 | √ | CURRENT_TIMESTAMP |
|
|
When the record was created. |
|||
updated_on | TIMESTAMP | 26 | √ | CURRENT_TIMESTAMP |
|
|
When the record was updated. This may be different from the created on date if changes have been made subsequently to the underlying record. |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
PRIMARY | Primary key | Asc | id |
unit_id | Performance | Asc | unit_id |