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 OverflowPrisma
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.
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
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
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
Programmatically Create Prisma schema,
We don't have any official solutions for generating a Prisma Schema. More on github.com
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
08:24
How to Use Multiple Schemas with Prisma - YouTube
07:22
Prisma Tutorial for Beginners #2 - Creating Our First Schema - YouTube
05:20
Create a Prisma Schema - YouTube
06:49
What's New in Prisma 6.12 - YouTube
Let's learn Prisma ORM: get started with migrate
06:16
Creating a database schema using Prisma ORM and Tabnine - YouTube
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
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
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.