You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description and expected behavior auth() function fields aren't resolved when User model is imported.
Screenshots
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)
}
The text was updated successfully, but these errors were encountered:
Description and expected behavior
auth()
function fields aren't resolved whenUser
model is imported.Screenshots
Environment (please complete the following information):
Additional context
user.zmodel:
image.zmodel:
The text was updated successfully, but these errors were encountered: