-
-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Milestone
Description
Description and expected behavior
auth() function fields aren't resolved when User model is imported.
Environment (please complete the following information):
- ZenStack version: next
- Prisma version: 5.5.2
- Database type: Postgresql
Additional context
user.zmodel:
import "./base"
import "./image"
model User extends Base {
email String @unique
@@auth
}image.zmodel:
import "./user"
import "./base"
model Image extends Base {
width Int @default(0)
height Int @default(0)
@@allow('read', true)
@@allow('all', auth().role == Admin)
}