Add docs/specs on foreign entity ids to DataModel repository
Closed, ResolvedPublic

Description

Should be based on the description of T133381.

Having such specs in place should make parts of code dealing with foreign IDs more clear and justified.