async def METHOD_NAME(self, db: "AsyncSession"):
    model = await Model.create(db, str_col="unit-test", int_col=1, external_id="12345", autocommit=True)
    await asyncio.sleep(1)
    model = await Model.upsert(
        db,
        ModelCreateSchema(str_col="unit-test-updated", int_col=2, external_id=model.external_id),
        constraints=[Model.external_id],
        autocommit=True,
    )
    assert model.str_col == "unit-test-updated"
    assert model.int_col == 2