Description and expected behavior
When importing an enum from an imported schema, an error is thrown when using the value as defualt
import "./includes/enum"
model Post {
...
status Status @default(PUBLISHED) <---throws "Reference not resolved: Status" error
...
}
This, however, works:
import "./includes/enum"
model Post {
...
status Status <-- No error thrown
...
}
Environment (please complete the following information):
- ZenStack version: 2.8.1
- Database type: postgres
Additional context
Add any other context about the problem here.