Data types
The MV framework supports the following 20 data types for building models: bool, int, float, char, url, redirect, email, phone, password, text, enum, parent, order, date, date_time, image, multi_images, file, many_to_one, many_to_many.
Based on the data types in the PHP class, the data types of the fields in the SQL tables are set using migrations.
- General characteristics
- Boolean bool
- String char
- Numeric: int, float, order
- Special string: url, redirect, email, phone
- Password password
- Text text
- Date and time: date, date_time
- File and image: file, image
- Array of images multi_images
- Choice enum
- Parent parent
- Many to one many_to_one
- Many to many many_to_many
- Group group
Previous section
General principles of models