Skip to main content

Export Overview

TalkingSchema exports your schema in two ways: standard exports from the toolbar (SQL, DBML, JSON, images, live deploy) and AI copilot exports generated inside the conversation thread (Prisma, Drizzle, TypeScript/Zod, OpenAPI, GraphQL, SQLAlchemy, TypeORM, and any other format the AI can produce). One-click file download for AI-generated outputs coming soon


Standard Exports

Access via the Export button in the top toolbar.

FormatDescriptionGuide
SQL DDLCREATE TABLE statements for PostgreSQL, MySQL, SQLite, MSSQLSQL Export
DBMLDatabase Markup Language — compatible with schema-as-code (DBML friendly) toolingDBML Export
JSONFull schema model for automation and CI/CD pipelinesJSON Export
ImagePNG, SVG, PDF for documentation and presentationsImage Export
Deploy to DatabaseExecute schema directly against Supabase or NeonDeploy to Database

SQL dialects

  • PostgreSQL — ENUM types, UUID, JSONB, TIMESTAMPTZ, SERIAL
  • MySQL — ENGINE=InnoDB, AUTO_INCREMENT, ENUM columns
  • SQLite — simplified, portable syntax
  • MSSQL — Microsoft SQL Server with IDENTITY columns

AI Copilot Exports

Ask the AI copilot in the conversation panel to generate any of the following. The output is returned as a formatted code block — copy directly or use one-click file download coming soon

FormatWhat you getGuide
PrismaComplete schema.prisma with models, @relation, enums, @@indexPrisma Export
Drizzle ORMTypeScript pgTable definitions, relations(), inferred typesDrizzle Export
TypeScript & ZodInterfaces, Zod insert/update/select schemas for API validationTypeScript & Zod Export
OpenAPIOpenAPI 3.1 YAML with CRUD paths, schemas, enums, and authOpenAPI Export
GraphQLSDL with types, queries, mutations, input types, connectionsGraphQL Export
SQLAlchemyPython 2.0 ORM models with mapped_column() and relationship()SQLAlchemy Export
TypeORMEntity classes with decorators for NestJS and Node.jsTypeORM Export
Flyway migrationVersioned .sql migration files with rollback instructionsMigrations
Liquibase changeSetXML changeSet with rollback elementsCI/CD Migrations
Alembic migrationPython upgrade() / downgrade() functionsMigrations

The AI copilot can generate any format not listed above — ask in plain language: "Export this schema as Hibernate Java entities" or "Generate a Django models.py for this schema."


How to Access Export

Toolbar exports (SQL, DBML, JSON, Image, Deploy)

  1. Open a schema in TalkingSchema
  2. Click Export in the top-right toolbar
  3. Select your format from the dropdown
  4. Download or copy the output

AI copilot exports (Prisma, Drizzle, OpenAPI, etc.)

  1. Open your schema — the AI has full context of the current ERD
  2. In the chat panel, ask for the format you need:
    • "Generate a schema.prisma for this ERD"
    • "Export as Drizzle ORM TypeScript definitions"
    • "Create an OpenAPI 3.1 spec with CRUD endpoints"
  3. The AI returns formatted output in the conversation
  4. Copy the code block — or use one-click download coming soon