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.

trialsetup_id INT 10 null
trialsetup.id phenotypedata_ibfk_7 C
phenotype_id INT 10 0
phenotypes.id phenotypedata_ibfk_2 C

Foreign key phenotypes (phenotype.id).

phenotype_value VARCHAR 255 null

The phenotype value for this phenotype_id and germinatebase_id combination.

recording_date DATETIME 19 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 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
phenotype_id Performance Asc phenotype_id
phenotypedata_recording_date Performance Asc recording_date
trials_query_index Performance Asc/Asc/Asc phenotype_id + recording_date + phenotype_value
trialsetup_id Performance Asc trialsetup_id

Relationships