Model and Column
Model Attributes
table_name- database table name for modeltimestamps- addcreated_atandupdated_atcolumns, true by default
Define Table Columns
- default columns: id, created_at, updated_at
Column Attributes
type- column typearray- whether the field is array typenull- whether the field is nullable, true by defaultdefault- column default value
Column Type
| rex data type | sql data type | sql data type (array) |
|---|---|---|
| pk | ||
| id | ||
| string | ||
| text | ||
| integer | ||
| float | ||
| decimal | ||
| boolean | ||
| json | json | |
| jsonb | jsonb | |
| enum(”admin, “member”) |