attributes


Description

Describes attributes. Attributes are bits of information that can be joined to, for example, a germinatebase entry. These are bits of data that while important do not warrant adding additional columns in the other tables. Examples would be using this to define ecotypes for germinatebase entries.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id INT 10 null
attributedata.attribute_id attributedata_ibfk_1C

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

name VARCHAR 255 null

Defines the name of the attribute.

description VARCHAR 255 null

Describes the attribute. This should expand on the name to make it clear what the attribute actually is.

datatype enum('int', 'float', 'char') 5 int

Describes the data type of the attribute. This can be INT, FLOAT or CHAR type.

target_table VARCHAR 255 germinatebase
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.

Indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id

Relationships