VSCode: Better way to create relations #782
Labels
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/feature
A request for a new feature.
topic: vscode
Problem
The relations syntax of Prisma is quite involved: https://www.prisma.io/docs/concepts/components/prisma-schema/relations
To go from
to
or alternatively to create something like
you need to
@relation
fields
and know that its value has to point to the relation scalar field (= FK field)references
and know that its value has to reference the other, referenced field@relation
needs to be named for disambiguationSuggested Solution
It would be amazing if the Prisma VSCode extension could help me create the relation between to models.
It is unclear to me what that would look like in VSCode, what UI is appropriate in that context.
The text was updated successfully, but these errors were encountered: