fix: create system account for service user (prod account_id NOT NULL) #91

Merged
chihlasm merged 1 commits from fix/service-account-system-account into main 2026-02-26 04:52:48 +00:00

1 Commits

Author SHA1 Message Date
chihlasm
f2908c1824 fix: create system account for service user to satisfy account_id NOT NULL on prod
The prod users table has account_id NOT NULL. The backfill migration and
ensure_service_account() now create a 'ResolutionFlow System' account
(display_code RF-SYS-1) before inserting the service user, satisfying the
constraint on all environments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 23:52:12 -05:00