Write Prisma queries with the right API patterns.
Recent revisions are kept. Restoring one creates a new revision.