complete reset async billing and upstream key rotation

This commit is contained in:
wlx committed 2026-09-27 14:58:24 +08:00
1 parent b54b6a8ac4
commit a80896e3c7
19 files changed
+531 -50

No files matched your search

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS password_reset_codes (
account varchar(254) PRIMARY KEY,
code_hash char(64) NOT NULL,
expires_at timestamptz NOT NULL,
attempts integer NOT NULL DEFAULT 0,
consumed boolean NOT NULL DEFAULT false,
created_at timestamptz NOT NULL DEFAULT now()
);
CREATE INDEX IF NOT EXISTS password_reset_codes_expires_idx
ON password_reset_codes(expires_at);
@@ -0,0 +1,7 @@
-- The official international Tripo V3 endpoint is openapi.tripo3d.ai.
-- Only migrate the catalog seed value; an administrator's custom endpoint is preserved.
UPDATE model_providers
SET base_url = 'https://openapi.tripo3d.ai'
WHERE id = 'provider-vast'
AND code = 'vast-tripo'
AND base_url = 'https://api.tripo3d.ai';
@@ -0,0 +1,2 @@
ALTER TABLE model_tasks ADD COLUMN IF NOT EXISTS reserved_amount numeric(20,8) NOT NULL DEFAULT 0 CHECK (reserved_amount >= 0);
ALTER TABLE model_tasks ADD COLUMN IF NOT EXISTS cost_amount numeric(20,8);