Switch Field
Switch fields are used to store boolean values, representing two states of yes/no.
Physical Field Types
- MySQL:
tinyint(1)
- PostgreSQL:
tinyint(1)
- SQLite:
integer
Applicable Scenarios
- Activation status
- Visibility
- Default status
- Read status
- Recommendation status
API Return Example
json
{
"is_active": true,
"is_visible": false,
"is_default": true
}