Skip to main content
When creating tables in EazeMyAPI, each field must have a data type. The data type defines what kind of data the field can store. Choosing the correct field type ensures:
  • Better data validation
  • Efficient database queries
  • Accurate API responses

Supported Field Types

EazeMyAPI supports the following field types.

TEXT

The TEXT type stores short text values. Common uses:
  • names
  • titles
  • usernames
  • city names
Example:
Example API response:

NUMBER

The NUMBER type stores integer numbers. Common uses:
  • age
  • quantity
  • counts
  • IDs
Example:
Example API response:

PARAGRAPH

The PARAGRAPH type stores long text content. Common uses:
  • descriptions
  • blog content
  • notes
  • comments
Example:

DECIMAL

The DECIMAL type stores numbers with decimal values. Common uses:
  • prices
  • ratings
  • percentages
  • measurements
Example:

DATE

The DATE type stores a calendar date. Common uses:
  • birth date
  • event date
  • joining date
Example:

DATETIME

The DATETIME type stores both date and time. Common uses:
  • created_at
  • updated_at
  • event timestamps
Example:

PASSWORD

The PASSWORD type stores secure password values. Passwords are encrypted before being stored. Example:

EMAIL

The EMAIL type stores valid email addresses. Common uses:
  • user login
  • account registration
  • contact information
Example:

PHONE

The PHONE type stores phone numbers. Example:

BOOLEAN

The BOOLEAN type stores true or false values. Common uses:
  • active status
  • verification status
  • feature flags
Example:

Example Table

Example users table:

Example Record


Example API Request

After creating a table, EazeMyAPI automatically generates APIs.

Example Endpoint

Example Request


Best Practices

When choosing field types:
  • Use TEXT for short text
  • Use PARAGRAPH for long content
  • Use NUMBER for integers
  • Use DECIMAL for prices or ratings
  • Use BOOLEAN for true/false values
  • Use DATETIME for timestamps
Correct field types make your APIs faster and easier to use.

Next Step

Learn how database schema works in EazeMyAPI. Database Schema