Skip to main content

Database Schema in EazeMyAPI

In EazeMyAPI, your backend is structured using database tables. Each table represents a collection of related data and automatically generates APIs for interacting with that data. Instead of manually coding backend endpoints, you simply define your database schema, and EazeMyAPI generates the API automatically.

What is a Database Schema?

A database schema defines how your data is structured. It includes:
  • Tables
  • Fields
  • Field types
  • Relationships between tables

Example Schema (Users Table)


Example Record

Example data stored in the users table:

Automatic API Generation

Once a table is created, EazeMyAPI automatically generates APIs for it.

Generated Endpoints (users table)

These APIs allow you to perform standard CRUD operations.
  • Create data
  • Read data
  • Update data
  • Delete data

Example API Endpoint

Example Request


Multiple Tables Example

Users Table

Posts Table


Table Relationships

Tables can be connected using relationships.

Example

This means each post belongs to a specific user.

Best Practices for Schema Design

When designing database tables in EazeMyAPI:
  • Keep each table focused on one type of data
  • Use clear and descriptive field names
  • Use proper field types for validation
  • Create relationships when data is connected
A well-designed schema makes your backend easier to maintain and scale.
Learn about supported field types: Field Types

Next Step

Now learn how APIs are generated automatically. How EazeMyAPI Works