schemix
schemix copied to clipboard
[Feature Request] Support `createView` for prisma previewFeature `view`
view PostStatics {
post_id String @unique
view Int
like Int
}
const PostStatics = createView("PostStatics", (view) => {
view.string("post_id", { unique: true })
.int("view")
.int("like");
});
https://www.prisma.io/docs/concepts/components/prisma-schema/views
I can work on the standing issues once my full-time workload has cleared up a little bit and I have some spare time