Define foreign keys for referential integrity | BeforeMerge Rules | BeforeMerge