Skip to content

make superior: model generate #1651

@ChenHaoJie9527

Description

@ChenHaoJie9527

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.
run

Additional context

Of course I'm crazy about my ideas and want to realize my ideas.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions