Number
Number fields store integer values without decimals.
View all settings
| Setting | Description |
|---|---|
| Field Name | Text input, required. Unique identifier for the field. |
| Input Type | Dropdown, required. Choose Bigint, Integer, or Small Int. |
| Default Value | Number input. Pre-filled value for new records. |
| Display Label | Text input. Human-readable label shown in forms. |
| Sort Order | Number input, defaults to 0. Position in field lists. |
| Icon | Icon picker. Visual identifier. |
| Status | Toggle, defaults to true. Enable or disable the field. |
| Required | Checkbox. Make the field mandatory. |
| Description | Text area. Documents the field's purpose. |
| Form Visibility | Dropdown. Show in Add, Edit, or Both forms. |
| DB Field Name | Text input. Custom database column name. |
| Faker Type | Dropdown. Generate test data. |
| Primary Key | Checkbox. Mark as unique record identifier. |
| Unique | Checkbox. Prevent duplicate values. |
| Use as Index | Checkbox. Create database index for performance. |
| Populate from Logged-In User | Checkbox. Auto-fill from user session. |
| Min Value | Number input. Minimum allowed value. |
| Max Value | Number input. Maximum allowed value. |
Input Types
- Bigint — 8-byte integer for very large values (up to ±9 quintillion). Use for IDs or large counters
- Integer — 4-byte standard integer (up to ±2 billion). Best for most use cases
- Small Int — 2-byte integer (up to ±32,767). Saves storage for small ranges
When to Use
Choose Number over Decimal when:
- You only need whole numbers (no fractions)
- Working with counts, quantities, or IDs
- Performance and storage efficiency matter
Settings
See Common Settings for shared options. Number supports Primary Key and Unique.
Validation (Advanced Settings)
| Setting | Description |
|---|---|
| Min Value | Minimum allowed value. |
| Max Value | Maximum allowed value. |
Use Cases
- Quantities and counts (inventory, stock levels)
- Age, rating scores, or ranking positions
- Foreign keys and numeric IDs
- Order numbers and sequence values
Related
- Common Settings — Shared settings reference
- Decimal — For fractional values
- Auto Generated — For auto-incrementing IDs