Add relationship method to SchemaInfo class.