test(invites): add InviteTokenRepository integration tests for existsActiveWithGroupId + V66 group_id index

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-14 16:14:31 +02:00
committed by marcel
parent 4995c3139e
commit be741ff9a2
2 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
-- The composite PK (invite_token_id, group_id) does not support efficient lookups by group_id alone.
-- Add a dedicated index to support existsActiveWithGroupId queries.
CREATE INDEX idx_itg_group_id ON invite_token_group_ids (group_id);