saveinmed/backend/internal/server
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
..
server.go fix(backend): bootstrap admin reuses existing platform company on duplicate CNPJ 2026-03-07 08:57:57 -06:00
server_test.go refactor: substitui backend Medusa por backend Go e corrige testes do marketplace 2026-02-17 04:56:37 -06:00