Skip to content

Number Field

The number field is used to store numerical data types, supporting both integers and decimals.

Physical Field Types

  • MySQL: int, decimal
  • PostgreSQL: integer, numeric
  • SQLite: integer, real

Applicable Scenarios

  • Product price
  • Quantity statistics
  • Age
  • Rating
  • Sorting weight

API Return Example

json
{
  "price": 99.99,
  "quantity": 100,
  "rating": 4.5
}

Released under the MIT License.