[OE-2882] added foreign keys