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

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.

---

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