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 |
|
|
Describes the climate. |
||||||
| short_name | CHAR | 10 | √ | null |
|
|
Shortened version of the climate name which is used in some table headers. |
||||
| description | MEDIUMTEXT | 16777215 | √ | null |
|
|
A longer description of the climate. |
||||
| datatype | enum('categorical', 'numeric', 'text', 'date') | 11 | text |
|
|
Defines the data type of the climate. This can be of numeric, text, date or categorical types. |
|||||
| unit_id | INT | 10 | √ | null |
|
|
Foreign key to units (units.id). |
||||
| created_on | DATETIME | 19 | √ | CURRENT_TIMESTAMP |
|
|
When the record was created. |
||||
| updated_on | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
When the record was updated. This may be different from the created on date if subsequent changes have been made to the underlying record. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| unit_id | Performance | Asc | unit_id |