-
Notifications
You must be signed in to change notification settings - Fork 52
make superior: model generate #1651
Copy link
Copy link
Closed
Labels
domain/schemaIssue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.kind/featureA request for a new feature.A request for a new feature.topic: automationtopic: codelenstopic: visualisation
Milestone
Description
Problem
I'm using prisma when defining model maps, and when I'm done writing all the code for execution, I always need to type in the npx prisma generate command, which can feel like a cumbersome not go.
example:
model Board {
id String @id @default(uuid())
title String
}
model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
email String @unique
name String?
role Role @default(USER)
}
enum Role {
USER
ADMIN
}endpoint: npx prisma generate
Suggested solution
I would like to be able to omit the npx prisma generate step in the.
Alternatives
I have a good idea, I would like to change to interactive model generation, similar to Jest, Vitest in each unit test has a Run arrow button, when clicking on the arrow, it will generate the corresponding generate for me.

Additional context
Of course I'm crazy about my ideas and want to realize my ideas.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
domain/schemaIssue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.kind/featureA request for a new feature.A request for a new feature.topic: automationtopic: codelenstopic: visualisation