Skip to main content

Number

Number fields store both integer and decimal values.

Go to StudioCollections → [Collection Name] → Fields tab → Add Field, then select Number. To edit an existing field, click the edit action next to it.

View all settings

Basic Settings

SettingDescription
Field NameText input, required. Unique identifier for the field.
Input TypeDropdown, required. Choose Bigint, Integer, Small Int, Decimal, Double, Float, or Real.
Default ValueNumber input. Pre-filled value for new records.
Display LabelText input. Human-readable label shown in forms.
IconIcon picker. Visual identifier.
StatusToggle, defaults to true. Enable or disable the field.
RequiredCheckbox. Make the field mandatory.

Advanced Settings

SettingDescription
DescriptionText area. Documents the field's purpose.
Form VisibilityDropdown. Show in Add, Edit, or Both forms.
DB Field NameText input. Custom database column name.
Primary KeyCheckbox. Mark as unique record identifier.
UniqueCheckbox. Prevent duplicate values.
Faker TypeDropdown. Disabled and Deprecated. Configure faker through collection options for each field.
Min ValueNumber input. Minimum allowed value.
Max ValueNumber 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
  • Decimal — Exact numeric with user-defined precision. Best for currency and financial data
  • Double — 8-byte floating-point with ~15 digits precision. Good for scientific calculations
  • Float — 4-byte floating-point with ~7 digits precision. Saves storage but less precise
  • Real — Alias for Float in PostgreSQL

Settings

See Common Settings for shared options.

Validation (Advanced Settings)

SettingDescription
Min ValueMinimum allowed value.
Max ValueMaximum allowed value.

Use Cases

  • Quantities and counts (inventory, stock levels)
  • Age, rating scores, or ranking positions
  • Foreign keys and numeric IDs
  • Prices and currency amounts (use Decimal)
  • Measurements (weight, dimensions, distance)
  • Percentages and ratios