phenotypedata


Description

Contains phenotypic data which has been collected.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id INT 10 null

Primary id for this table. This uniquely identifies the row.

phenotype_id INT 10 0
phenotypes.id phenotypedata_ibfk_2C

Foreign key phenotypes (phenotype.id).

germinatebase_id INT 10 0
germinatebase.id phenotypedata_ibfk_3C

Foreign key germinatebase (germinatebase.id).

phenotype_value VARCHAR 255 null

The phenotype value for this phenotype_id and germinatebase_id combination.

dataset_id INT 10 null
datasets.id phenotypedata_ibfk_1C

Foreign key datasets (datasets.id).

recording_date DATETIME 26 null

Date when the phenotypic result was recorded. Should be formatted ‘YYYY-MM-DD HH:MM:SS’ or just ‘YYYY-MM-DD’ where a timestamp is not available.

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 subsequent changes have been made to the underlying record.

location_id INT 10 null
locations.id phenotypedata_ibfk_4N

Foreign key to locations (locations.id).

treatment_id INT 10 null
treatments.id phenotypedata_ibfk_5N

Foreign key to treatments (treatments.id).

trialseries_id INT 10 null
trialseries.id phenotypedata_ibfk_6N

Foreign key to trialseries (trialseries.id).

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
dataset_id Performance Asc dataset_id
dataset_id_2 Performance Asc/Asc dataset_id + germinatebase_id
germinatebase_id Performance Asc germinatebase_id
phenotype_id Performance Asc phenotype_id
phenotypedata_recording_date Performance Asc recording_date
phenotypes_ibfk_locations Performance Asc location_id
phenotypes_ibfk_treatment Performance Asc treatment_id
phenotypes_ibfk_trialseries Performance Asc trialseries_id
trials_query_index Performance Asc/Asc/Asc/Asc/Asc/Asc/Asc/Asc phenotype_id + germinatebase_id + location_id + trialseries_id + recording_date + treatment_id + dataset_id + phenotype_value

Relationships