Alternera. Resource. Verifiers. TenantReferences
(alternera_resource_sdk v0.9.0)
Copy Markdown
View Source
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).