feat: add application interface controls

This commit is contained in:
hectorzhao
2026-07-09 18:32:26 +08:00
parent 767f0ca9aa
commit ff0756ff9c
14 changed files with 260 additions and 26 deletions
@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "SmsApplication"
ADD COLUMN "interfaceEnabled" BOOLEAN NOT NULL DEFAULT true,
ADD COLUMN "interfaceType" TEXT NOT NULL DEFAULT 'cmpp20';
+2
View File
@@ -344,6 +344,8 @@ model SmsApplication {
cmppAccount String @unique
cmppEnterpriseCode String
secretHash String
interfaceEnabled Boolean @default(true)
interfaceType String @default("cmpp20")
cmppMaxConnections Int @default(1)
cmppWindowSize Int @default(16)
dailyLimit Int?