Alternera.Resource.VersionMixin (alternera_resource_sdk v0.9.0)

Copy Markdown View Source

Mixed into each resource's version resource (paper_trail do mixin …).

AshPaperTrail copies only the table and the repo to the version resource, so the mixin puts the versions table in the package's schema, with an index on tenant_id for the proxy's tenant cleanup. It also adds actor_id, which Alternera.Resource.Changes.SetActorId fills.