feat(relay): add V002 database migration for auth + identity tables (MM-138)
Creates V002__auth_identity.sql with all 12 Wave 2 tables: accounts,
handles, did_documents, signing_keys, devices, claim_codes, sessions,
refresh_tokens, oauth_clients, oauth_authorization_codes, oauth_tokens,
and oauth_par_requests. Adds the 5 required indexes (unique email,
claim_codes/refresh_tokens/oauth_tokens did lookups). Uses WITHOUT ROWID
on tables with PK-only access paths. Updates MIGRATIONS static and
existing row-count assertions to be future-proof via MIGRATIONS.len().
Adds 9 V002 tests covering table existence, idempotency, FK enforcement,
unique email, and EXPLAIN QUERY PLAN for all 4 non-trivial indexes.
authored by
malpercio.dev
and committed by