feat: restore credit limits and harden SMS sending

This commit is contained in:
hectorzhao
2026-07-14 18:46:35 +08:00
parent 3e3b7a9d1a
commit c1a17699db
23 changed files with 796 additions and 56 deletions
@@ -0,0 +1,2 @@
ALTER TABLE "TenantAccount"
ADD COLUMN "creditCents" INTEGER NOT NULL DEFAULT 0;
+1
View File
@@ -267,6 +267,7 @@ model TenantAccount {
id String @id @default(cuid())
tenantId String
balanceCents Int @default(0)
creditCents Int @default(0)
status String @default("active")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt