DbSchema includes a built-in AI Assistant that helps you work with your database faster — whether you need to write a SQL query, understand a table structure, or get design suggestions for your schema.
The AI Assistant can be opened in two ways:
The assistant is disabled by default. You can activate it by starting a free trial via your DbSchema account, or by supplying your own API key in Settings → AI Assistant.
Type your request in plain English in the AI chat panel. For example:
The assistant generates SQL tailored to your schema (see Schema Context below). Copy the result directly into the SQL Editor and run it.
You can ask the AI Assistant for help with schema design decisions:
The assistant can also produce CREATE TABLE statements that you can review and merge into your
design model using the diagram editor.
For best results, the AI Assistant uses your open design model as context — it knows your table names, column names, types, and relationships. This allows it to generate accurate SQL and relevant suggestions specific to your actual database, rather than generic examples.
You can control which tables are included in the context from the AI Assistant panel. For large schemas, focus the context on the tables relevant to your current question to get more precise answers.
See also: SQL Editor · Data Generator · Automation Scripts