Definition Fields
Definition Fields
Definition fields are used to define the columns of a table. They have a name, a type, and can have additional attributes.
Syntax
field_name field_type @Attribute(param1, param2, ...) @AnotherAttribute(param1, param2, ...)
nullable_field_name field_type? @Attribute(param1, param2, ...) @AnotherAttribute(param1, param2, ...)
Field Types
The field types can have parameters and are used to define the type of the column. They use the same syntax as the generic types of assignment fields.
Syntax
field_name field_type(param1, param2, ...)