Add optimistic locking version and versionless diagrams