PrismaP
Prisma7mo ago
6 replies
tony

prisma-client "Model" suffix?

The "prisma-client" early access docs say to import models like this

import { User, Post } from "./generated/prisma/models.js"

However, all the models seem to have "Model" appended to the end, e.g. UserModel, PostModel, etc.

Is this due to a recent change? Is there a pull request when this changed?

Is this expected behavior? Is there any way to customize this?
Was this page helpful?