schemix icon indicating copy to clipboard operation
schemix copied to clipboard

[Feature Request] Support `createView` for prisma previewFeature `view`

Open rojiwon123 opened this issue 2 years ago • 1 comments

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

rojiwon123 avatar Nov 27 '23 17:11 rojiwon123

I can work on the standing issues once my full-time workload has cleared up a little bit and I have some spare time

ridafkih avatar Dec 08 '23 00:12 ridafkih