add MetadataKeyDef relation