Closed onimitch closed 2 weeks ago
Description and expected behavior
abstract model SoftDelete { deleted Int @default(0) @omit } model MyModel extends SoftDelete { id String @id @default(cuid()) name String @@deny('update', deleted != 0 && future().deleted != 0) }
The above @deny rule errors: Could not resolve reference to DataModelField named 'deleted'.
Could not resolve reference to DataModelField named 'deleted'.
Workaround for now: Place the deny rule in the abstract model.
Environment (please complete the following information)
Thanks for reporting this @onimitch . I'll confirm and make a fix soon.
Fixed in 2.6.0
@ymc9 thanks!
Description and expected behavior
The above @deny rule errors:
Could not resolve reference to DataModelField named 'deleted'.
Workaround for now: Place the deny rule in the abstract model.
Environment (please complete the following information)