Home · Business · IT, Data & Security · Software development
As of 13 August 2026, AI can only partly create a database schema for your business app.
This still needs a person who signs their name to it.
Can you do it?
5 minutesto a draft.
1 hourto something you’d act on.
Cost, all in£0
Skill neededchat-fluent
Who has to check ita colleague
What the alternative costsLovable is an AI tool that builds a working full-stack version from a description, including the application that will use the schema.
If this goes wrong, incompatible changes, duplicated records or excessive access can force a rewrite or cause data loss and a security incident.
What to actually do
Hand it to a person
The route this page recommends
A person who owns the outcome does this end to end, worth it when the failure is dear.
Use a tool built for this
Second choiceDo it yourself
The distant thirdA chat interface, chat-fluent skill, and roughly 1 hour until you can act on the result.
How to actually do it
- Open a requirements document and write the app description, user roles, workflows, records, business rules, expected scale and data types listed in the prompt.
- Check the current application technology and database engine in the project documentation, then paste those details into the prompt or mark them as undecided.
- Paste the completed prompt into an AI chat and ask it to produce the schema, unanswered questions, SQL, permissions outline and test cases in the requested order.
- Open the generated entity relationship overview beside the requirements document and mark every entity, relationship, status and rule that is unsupported or unclear.
- Paste each unresolved item back into the chat with your decision and ask for the SQL, indexes, constraints, permissions and migration steps to be regenerated without changing unrelated parts.
- Run the SQL in a disposable development database using your chosen database engine, then run the generated tests for duplicates, invalid transitions, deletion, concurrent updates and unauthorised access.
- Ask a developer or technical lead to compare the final schema and migration plan against the application code, backup and recovery plan, security model, privacy requirements and expected workload before production use.
- Commit the approved schema and migration files to version control, apply them first to a staging database, and record the rollback plan before sending them to production.
Prompt
Design a production-ready relational database schema for this business app. Use the requirements below and do not invent business rules. Where a requirement is missing or ambiguous, list a clear question instead of choosing silently. App description: [describe the app] Users and roles: [list each user type and what it can do] Core entities: [list customers, orders, bookings, products or other records] Workflows: [describe how records are created, changed, cancelled and deleted] Important rules: [state uniqueness, status changes, ownership, payment, retention and audit requirements] Expected scale: [give known or expected users, records and growth, or write unknown] Personal or sensitive data: [list any data stored, or write none] Technology: [database engine and application framework, or write undecided] Return: 1. A short assumptions and unanswered-questions section. 2. An entity relationship overview in plain English. 3. The complete SQL DDL for the chosen database engine, including primary keys, foreign keys, data types, NOT NULL rules, unique constraints, check constraints and indexes. 4. A migration strategy for applying this schema to an empty database and to an existing database. 5. A permissions and data-access outline for each role. 6. Seed data only where it is clearly labelled as example data. 7. Test cases covering normal records, duplicate records, invalid state changes, deletion, concurrent updates and access by the wrong role. 8. A section called "What a developer must verify" covering performance, backups, recovery, security, privacy, retention, audit logging and future migrations. Prefer simple designs over unnecessary abstraction. Explain every non-obvious choice. Do not include secrets, real personal data or fabricated performance figures.
Open it prefilled in ChatGPT or Claude, or copy it into Gemini, which takes no prefill link.
What it gets wrong
- AI cannot decide unstated ownership, retention or status rules for your business without making assumptions.
- AI cannot know whether the schema fits your existing application code, operational processes or future reporting needs unless you supply and test those details.
- AI cannot prove that indexes, transactions and migrations will perform safely under your real workload.
- AI cannot take responsibility for data loss, privacy breaches or an irreversible production migration.
- AI cannot replace a developer who can inspect the whole system, run failure tests and approve the design.
What caps this at PARTLY: judgement under ambiguity, verification cost and stakes of error.
How we scored this
Five axes, each scored nought to two by hand: ten means AI carries the task cleanly, and the thresholds that turn a total into YES, PARTLY or NO are published in the methodology. Each axis name links to its definition.
| Axis | Score (0–2) |
|---|---|
| Output | 2 |
| Inputs | 1 |
| Verification | 1 |
| Liability | 1 |
| Effort delta | 2 |
| Total | 7 / 10 |
The methodology and its thresholds are published in full.
FAQ
- Can ChatGPT create a database schema?
- Yes, it can draft tables, relationships, constraints, indexes and SQL migrations from a clear set of requirements. It cannot reliably fill in missing business rules, so a developer or technical lead should approve and test the result before production use.
- Can AI design a database for my small business?
- Partly. AI can turn your customers, products, orders and workflows into a useful first schema, but you still need to state how records change, who can access them and what must be retained.
- Can AI write SQL for my app?
- Yes, including SQL for tables, foreign keys, constraints, indexes and migrations when you name the database engine. Run it against a disposable database and check it against your application code before applying it to real data.
- Do I need a developer to check an AI database schema?
- For a production business app, yes. You may be able to inspect a simple draft yourself, but a developer or technical lead should check permissions, transactions, performance, backups, recovery and migration safety.
Nearby answers
Assessed by gpt-5.6-luna (gpt-5.6-luna) on 2026-08-13, second-checked by an independent model. Wrong somewhere? Email [email protected] and it gets re-checked.
The newsletter
AI news, new answers and product picks, straight to your inbox.