-
Today a user must ensure that policy rules cover the cases of anonymous users (where `auth()` evaluates to null). This can be not obvious when comparing `auth()` with other (nullable) fields. E.g.:
…
ymc9 updated
5 months ago
-
Having the following models:
```
model House {
id Int @id @default(autoincrement())
doorTypeId Int
door Door @relation(fields: [doorTypeId], references: [id])
type String
@@delegate…
-
**Description and expected behavior**
I have a zmodel with inheritance. The base has a one to many relation. When quering the child, I am trying to use _count. However, it tries to find the relation …
-
Let's say I want to make sure, that an email is always valid before it gets created.
It would be awesome, if I could add an `@email` directive like so:
```prisma
model User {
id Int @id
em…
-
**Is your feature request related to a problem? Please describe.**
In my docker image build pipeline, I need to run `zenstack generate` to generate zenstack files (enhance, etc).
But I use the `@z…
-
## Problem
I have a number of models in my schema and most of them include the following 4 fields:
```prisma
createdAt DateTime @default(now())
createdBy String
updatedAt Da…
-
## Problem
I'm am new to frontend and trying to build simple application with react and @supabase. I'm using Prisma schema and Prisma migrate as a replacement for pure SQL domain definition.
T…
-
**Description and expected behavior**
When building the Next.js application I get this warning:
```
./node_modules/@zenstackhq/runtime/enhance.js
Module not found: Can't resolve '.zenstack/enhan…
-
## Problem
Let's say I have a table called `categories`. This table can refer to itself as a foreign key with `parentCategory`.
So a categories can have many subcategories, and subcategories can als…
-
**Description and expected behavior**
After trying to create a deny access policy in a schema, I found out, that the policy is not behaving the right way. This issue seems to be related to a one-to-o…