# `Alternera.Resource.Verifiers.TenantReferences`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_resource_sdk/lib/alternera/resource/verifiers/tenant_references.ex#L1)

Rule 9: every reference stays inside the tenant. Each `belongs_to` has an
AshPostgres reference matched on `tenant_id`, and the resource has the
identity `:alternera_tenant_key` on its primary key that such a key points
at (`Alternera.Resource.Transformers.AddTenantReferences` writes both).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
