Yes, you can use prisma db pull to generate schema from your actual database. Don't forget to run prisma generate after that to generate the client too.

More info in the docs as always

Answer from Danila on Stack Overflow
🌐
Prisma
prisma.io › home › overview of prisma schema › overview of prisma schema › overview of prisma schema
Prisma schema | Prisma Documentation
The Prisma Schema (or schema for short) is the main method of configuration for your Prisma ORM setup. It consists of the following parts: Data sources: Specify the details of the data sources Prisma ORM should connect to (e.g. a PostgreSQL database) Generators: Specifies what clients should be generated based on the data model (e.g.
🌐
Prisma
prisma.io › home › generators › generators › generators › generators
Generators (Reference) | Prisma Documentation
Generators in your Prisma schema specify what assets are generated when the `prisma generate` command is invoked. This page explains how to configure generators.
Discussions

database - Get the schema from table in prisma - Stack Overflow
Is there any way to get schema from tables in prisma? ... Save this answer. ... Show activity on this post. Yes, you can use prisma db pull to generate schema from your actual database. More on stackoverflow.com
🌐 stackoverflow.com
Generate a schema.prisma file from a *.sql file
Hello. I'm trying out prisma for the first time by migrating an existing mysql DB to prisma. I'm stuck att generating a schema.prisma file from my *.sql dump. Can anyone point me in the rig... More on github.com
🌐 github.com
4
1
December 23, 2020
Programmatically Generating & Applying a Prisma Schema
Hello! I've been looking into ways to allow one of my projects (a Discord bot) to have support for many different types of databases that the user can pick from. Prisma appears to be the way to go!... More on github.com
🌐 github.com
2
4
Programmatically Create Prisma schema,
We don't have any official solutions for generating a Prisma Schema. More on github.com
🌐 github.com
3
1
March 22, 2022
People also ask

What export formats are available?
Skemato supports multiple export formats: PNG images (free), SQL scripts (Pro+), SVG vector graphics (Max), JSON schema (Max), and framework migrations for Laravel, Django, Prisma, and TypeORM (Max).
🌐
skemato.com
skemato.com › home › blog › generate prisma schema from visual database design
Generate Prisma Schema from Visual Database Design | Skemato Blog
Can I export migrations for frameworks?
Yes, Skemato can generate migrations for Laravel (PHP), Django (Python), Prisma (Node.js), and TypeORM (TypeScript). This feature is available in the Max plan.
🌐
skemato.com
skemato.com › home › blog › generate prisma schema from visual database design
Generate Prisma Schema from Visual Database Design | Skemato Blog
What databases does Skemato support?
Skemato supports 5 SQL dialects: MySQL, PostgreSQL, SQLite, SQL Server (MSSQL), and Oracle. You can switch between dialects and export schemas in any supported format.
🌐
skemato.com
skemato.com › home › blog › generate prisma schema from visual database design
Generate Prisma Schema from Visual Database Design | Skemato Blog
🌐
Prismabuilder
prismabuilder.io
Prisma Schema Builder
Name your schema · Choose a provider · Create your models · Click “Generate schema”
🌐
Skemato
skemato.com › home › blog › generate prisma schema from visual database design
Generate Prisma Schema from Visual Database Design | Skemato Blog
November 23, 2025 - // prisma/schema.prisma generator client { provider = "prisma-client-js" } datasource db { provider = "postgresql" // or mysql, sqlite, sqlserver url = env("DATABASE_URL") } model User { id Int @id @default(autoincrement()) email String @unique name String? posts Post[] createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } model Post { id Int @id @default(autoincrement()) title String content String?
🌐
npm
npmjs.com › package › prisma-generate-schema
prisma-generate-schema - npm
January 12, 2021 - First, a datamodel is parsed using the Parser class from prisma-datamodel, Then, an OpenCRUD schema is created using the SchemaGenerator. The schema generator utilizes several other generators to generate the mutation, query and subscription ...
      » npm install prisma-generate-schema
    
Published   Jan 12, 2021
Version   1.34.12
Find elsewhere
🌐
Prisma
prisma.io › home › generate › generate
prisma generate | Generate Prisma Client & Artifacts | Prisma Documentation
The prisma generate command generates assets like Prisma Client based on the generator and data model blocks defined in your schema.prisma file.
🌐
SabinTheDev
sabinadams.hashnode.dev › building-a-prisma-schema
Learn to build your prisma schema - Sabin Adams
December 31, 2021 - A generator allows you to configure what is generated when you run the command prisma generate. You can configure multiple generators per schema, however by default Prisma sets up a single generator and specifies prisma-client-js as the provider, ...
🌐
npm
npmjs.com › package › prisma-json-schema-generator
prisma-json-schema-generator - npm
June 22, 2024 - A generator, which takes a Prisma 2 schema.prisma and generates a JSON Schema in version 7 of the specification (https://json-schema.org/).
      » npm install prisma-json-schema-generator
    
Published   Jun 22, 2024
Version   5.1.5
🌐
Prisma Editor
prisma-editor.vercel.app
Prisma Editor | Visualize and Edit Prisma Schemas
Edit your Prisma Schema directly from the graph! Share your schema with a link and collaborate! Intuitive interface for easy schema editing and management! Use natural language prompts to generate boilerplate schema code with the power of OpenAI's natural language processing API!
🌐
GitHub
github.com › prisma › prisma › issues › 19627
`prisma generate` to use custom schema file name in `output` folder · Issue #19627 · prisma/prisma
When I run prisma generate --schema=./prisma/Test/schema_Test.prisma, it generates prisma files as expected under the Test output folder.
Author   prisma
🌐
GitHub
github.com › prisma › prisma › discussions › 11006
How to programmatically parse/generate Prisma schema file? · prisma/prisma · Discussion #11006
January 7, 2022 - What DB are you using? This sounds like the wrong approach if you're using a relational db, and still sort of impossible using a predefined schema on a document db. I'd have a look at the Json field type Prisma supports, and see if that fits your needs better than creating a schema on the fly.
Author   prisma
🌐
Prisma
prisma.io › home › prisma cli reference › prisma cli reference › prisma cli reference
Prisma CLI reference | Prisma Documentation
CREATE NEW DATABASE: Local: npx prisma dev (runs Postgres locally in your terminal) Cloud: npx create-db (creates a free Prisma Postgres database) Then, define your models in `prisma/schema.prisma` and run `npx prisma migrate dev` to apply your ...
🌐
notiz
notiz.dev › blog › prisma-dbml-generator
DBML generator for Prisma - notiz.dev
Introducing 🥳 Prisma DBML Generator automatically generating a DBML schema based on your Prisma Schema.
🌐
Medium
medium.com › @taufikozora › what-is-schema-in-prisma-1f52ddac630e
What is schema in prisma.. Attention: | by Taufik Kemal | Medium
June 23, 2023 - This model informs Prisma about the database schema to be used. When you run the prisma generate command, Prisma will use this model to generate client code, such as Prisma Client, which allows you to interact with the "User" table and perform CRUD (Create, Read, Update, Delete) operations on the data associated with that entity.