zenstack
zenstack copied to clipboard
Typescript toolkit on top of Prisma ORM, offering flexible and declarative Access Control Policy(Authorization/Permission) for RBAC/ABAC/PBAC/ReBAC with auto-generated type-safe APIs and frontend hook...
**Description and expected behavior** In Next.js [14.2.10](https://github.com/vercel/next.js/releases/tag/v14.2.10), as well as the latest [14.2.12](https://github.com/vercel/next.js/releases/tag/v14.2.12), wrapping the app in [`ZenStackHooksProvider`](https://zenstack.dev/docs/reference/plugins/tanstack-query#context-provider) as exported from `"../lib/hooks"` causes Next.js to throw an Internal Server Error...
**Is your feature request related to a problem? Please describe.** So if you look at the Ad model below, I would like to replace the hardcoded value `'STORE'` with the...
**Description and expected behavior** Schema ``` model Asset { @@map('assets') id String @id @default(cuid()) url String downloadUrl String pathname String size BigInt contentType String @@delegate(contentType) } model Image extends Asset...
**Description and expected behavior** Schema ``` model Asset { @@map('assets') id String @id @default(cuid()) createdAt DateTime @default(now()) updatedAt DateTime @default(now()) @updatedAt url String downloadUrl String pathname String @omit size BigInt...
I've set up a new project based on an existing Prisma schema. I use the RestApiHandler and openapi plugin with rest flavor. My (simplified) models look like this: ```prisma model...
When using the RESTApiHandler and OpenAPI plugin, the return types for attributes in a get request are currently all optional (` | undefined`). Since JSON:API responses always include all the...
In my `schema.zmodel` I define to output the prisma client to the same dir with zenstack: ``` generator client { provider = "prisma-client-js" output = '../../lib/zenstack/prisma' } datasource db {...
**Is your feature request related to a problem? Please describe.** Using this as an example (found on official docs): ```prisma model User { id Int @id @default(autoincrement()) contents Content[] }...
Currently the `@zenstackhq/trpc` plugin only generates client types for React and Next clients. The types for the Nuxt client `trpc-nuxt` would be a welcome addition. It's quite trivial to derive...