I didn't test, whether the entities behave as expected when renaming the key1 to val1 / id - I just checked the generated schema.