added foreign key constraint on order_type.parent column TRUNK-4395