-
Notifications
You must be signed in to change notification settings - Fork 2.1k
prisma init --with-model #20915
Copy link
Copy link
Closed
Labels
good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!Always wanted to get involved in an open source project but don’t know where to begin? Welcome!kind/featureA request for a new feature.A request for a new feature.topic: clitopic: prisma initCLI: prisma initCLI: prisma init
Milestone
Description
When testing things, it is often needed that after prisma init you add a trivial model to your schema.prisma file. It would be amazing if there was a simple CLI argument that adds a model to the generated file by default, making that step obsolete.
Model can be as simple as our suggestion on prisma generate without a model:
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!Always wanted to get involved in an open source project but don’t know where to begin? Welcome!kind/featureA request for a new feature.A request for a new feature.topic: clitopic: prisma initCLI: prisma initCLI: prisma init