create([ 'tenant_id' => '00000000-0000-0000-0000-000000000001', 'external_id' => '00000000-0000-0000-0000-000000000001', 'is_current' => true, ]); expect(fn () => Tenant::factory()->create([ 'tenant_id' => '00000000-0000-0000-0000-000000000001', 'external_id' => '00000000-0000-0000-0000-000000000002', 'is_current' => false, ]))->toThrow(QueryException::class); });