Add login to your app with Better Auth.
Recent revisions are kept. Restoring one creates a new revision.