Database Schema Design: Multi-Tenant SaaS
Tenants, users, roles and billing tables for a SaaS app.
SCHEMA DESIGNER AGENT
An AI database schema generator for engineering and product teams: tell the Schema designer agent what the feature does, answer its questions about unclear entities, and it draws an ER diagram with tables, columns, types, primary and foreign keys and labelled relations, ready to edit on a Cloudairy canvas.

Trusted by Professionals at Leading Companies
HOW IT WORKS
In Cloudairy, open Agents, then Prebuilt agents, and pick Schema designer. Use as a starting point opens the agent builder with the job already written, so you get your own copy to adjust before you save it.
Write what the product needs in plain words: the things it stores and what users do with them.
When the entities or rules are unclear, the agent asks first, for example whether one booking can hold several services.
The reply links to a new diagram with tables, columns and types, key icons on the primary keys, and labelled relations.
Change the instructions, the questions it asks and its steps in the agent builder at any time.

EXAMPLE RUN
We asked our Schema designer for “a booking system for Northwind Labs: customers, services, staff, time slots, bookings and payments”. It asked four questions about the rules, then created the diagram and linked it in the reply.
Can a booking hold several services? Do time slots belong to staff? One payment per booking or several?
Booking_service and Staff_service connect services to bookings and to staff.
integer ids, varchar, decimal, date and timestamp columns, with the primary key marked in each table.
The reply ends with a Created diagram card. Open it to see the schema.

THE RESULT
The AI database schema generator draws the schema as an ER diagram on a Cloudairy canvas: one table per entity, each column with its type, and every relation labelled, such as places, paid by, holds and provides.
Move tables, rename columns, add notes and arrows with the canvas tools.
The canvas opens with the AI panel beside it, so you can ask for unique constraints or status fields.
Invite teammates to the board and comment on the schema together.
The ERD templates below give you a schema to compare against or extend.

EXAMPLE PROMPTS
The prebuilt Schema designer comes with sample prompts. Each gives a different shape of schema to start from.
“A multi-tenant SaaS with teams, members and roles.” Tenants, teams, users and a role join table.
“An online store with products, orders and customers.” Orders and order lines between customers and products.
“A booking system with customers, staff and time slots.” Slots per staff member, bookings and payments.
Paste the feature description from your PRD and let the agent ask what is missing.

GOOD TO KNOW
The Schema designer is built to design a new schema from a description. Plan your work around these limits.
It works from what you write in the chat. It does not connect to your live database or read an existing one.
The result is an ER diagram. Write the migration or DDL from it with your own tools.
Free includes 1 AI agent, Pro 5 AI agents, Business 50 AI agents and Enterprise unlimited. See plans.
Each run uses AI credits from your plan; our booking system run used 39.
One plan covers every artifact type, AI agents and the knowledge base. Only AI credits are metered, and the team shares them.
Try Cloudairy AI at no cost.
For small teams that create with AI every day.
For teams running AI at scale.
For organisations with a security review.
TRUST IS THE FOUNDATION
Cloudairy safeguards your work with enterprise-grade security, compliance, and access controls — so your teams can create, collaborate, and scale with confidence.
Every board, doc and file is encrypted with AES-256 at rest and TLS 1.2+ in transit.
Workspace, team and guest roles with SSO and SCIM, so the right people see the right work.
Export or delete your content whenever you want — your work is never used to train models.
SOC 2 Type II · GDPR · ISO 27001 · Penetration tested annually
All Systems Operational
ERD TEMPLATES
Prefer to begin from a finished schema? Open an ER diagram template in Cloudairy and make it yours.
Tenants, users, roles and billing tables for a SaaS app.
Customers, products, orders and payments for an online store.
A general database ER diagram to start any schema.
A library schema normalised to third normal form.
Accounts, contacts, deals and activities for a CRM.
Seven common patterns, from self-reference to polymorphic links.
Collections and embedded documents for a document database.
An 8-table HR schema with a manager self-reference.
FAQ
Yes. The Free plan includes 1 AI agent and 100 AI credits a month, enough to set up the Schema designer and try it. Paid plans add more agents and credits.
An ER diagram with one table per entity, each column with its type, the primary key marked in every table, foreign key columns, join tables for many-to-many links and labelled relations between tables.
No. The agent designs a new schema from the description you type in the chat. It does not connect to a live database or import an existing one.
Yes. The diagram opens on a Cloudairy canvas, where you can move tables, rename columns and add notes, or ask Cloudairy AI in the panel beside it for changes such as unique constraints.
Teammates can work on the diagrams it creates. Sharing agents across a team comes with the Business plan, which includes 50 AI agents.
The AI ER diagram generator draws a diagram from one prompt. The Schema designer is an agent you keep: it asks about unclear entities and rules first, and you can change its instructions in the agent builder.