AZ602: A key of another type
Keys are bigint unless written: type doc = app.docs (id uuid). The table's column has another type.
Reported when the policy is applied (rowfence push, apply, a migration), against the database.
The mistake
authz
app role app_user
type user = app.users
type doc = app.docs
owner : user = owner_id
can view = ownerFixed
authz
app role app_user
type user = app.users
type doc = app.docs (id uuid)
owner : user = owner_id
can view = owner