Skip to content

prisma init --with-model #20915

@janpio

Description

@janpio

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?
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueAlways wanted to get involved in an open source project but don’t know where to begin? Welcome!kind/featureA request for a new feature.topic: clitopic: prisma initCLI: prisma init

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions