Module rorm_declaration::hmr::annotations
source · Expand description
A type level version of imr::Annotation
to be used in generic type bound checks
Structs
Will set the current time of the database when a row is created.
AUTO_INCREMENT constraint
Will set the current time of the database when a row is updated.
A list of choices to set
DEFAULT constraint
Represents a complex index
Only for VARCHAR. Specifies the maximum length of the column’s content.
The annotated column will be used as primary key
UNIQUE constraint
Enums
A column’s default value which is any non object / array json value
Traits
Trait for converting a hmr type into a imr one