def METHOD_NAME():
    with pytest.raises(ModelDefinitionError):
        class User(ormar.Model):
            class Meta(MainMeta):
                pass
            registrationnumber: str = ormar.Text(primary_key=True)
            company: Company = ormar.ForeignKey(Company)
            company2: Company = ormar.ForeignKey(Company)