saveinmed/backend/internal
Tiago Yamamoto a5f50321b9 fix(backend): bootstrap admin reuses existing platform company on duplicate CNPJ
When the platform company (CNPJ 00000000000000) already exists in the DB,
RegisterAccount was failing with a unique constraint error before creating
the admin user. Now the bootstrap checks for the existing company first
and binds the new admin user directly to it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 08:57:57 -06:00
..
config refactor(saveinmed): type legacy addresses and parameterize bootstrap admin 2026-03-07 08:24:53 -06:00
domain feat: consolidate architecture, remove bff dependency and update backend/frontend modules 2026-03-07 06:40:42 -06:00
http feat: consolidate architecture, remove bff dependency and update backend/frontend modules 2026-03-07 06:40:42 -06:00
infrastructure chore: remove legacy services and restructure monorepo 2026-02-25 16:51:34 -03:00
repository/postgres feat: consolidate architecture, remove bff dependency and update backend/frontend modules 2026-03-07 06:40:42 -06:00
server fix(backend): bootstrap admin reuses existing platform company on duplicate CNPJ 2026-03-07 08:57:57 -06:00
usecase feat: consolidate architecture, remove bff dependency and update backend/frontend modules 2026-03-07 06:40:42 -06:00