Allow multiple hosting servers per sold version.

Drop unique tenant_id on server_accounts and add create/update/delete/renew APIs per server account, with list/expiring using the worst status.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-06 19:23:37 +03:30
co-authored by Cursor
parent c6d90ea262
commit f61d10e07b
5 changed files with 316 additions and 100 deletions
@@ -0,0 +1,4 @@
-- Allow multiple hosting servers per sold version (tenant).
DROP INDEX IF EXISTS "public"."server_accounts_tenant_id_key";
CREATE INDEX IF NOT EXISTS "server_accounts_tenant_id_idx" ON "public"."server_accounts"("tenant_id");