feat: enforce signature-scoped drainage authorization before SMS submission
This commit is contained in:
@@ -1790,6 +1790,14 @@ model SmsApiRequest {
|
||||
@@index([batchTaskId])
|
||||
}
|
||||
|
||||
model SmsDrainageDecision {
|
||||
id String @id @default(cuid())
|
||||
messageRecordId String
|
||||
decidedAt DateTime @default(now())
|
||||
snapshot Json
|
||||
@@index([messageRecordId, decidedAt])
|
||||
}
|
||||
|
||||
model SmsMessageRecord {
|
||||
monitorFacts SendingMonitorFact[]
|
||||
id String @id @default(cuid())
|
||||
@@ -1808,6 +1816,8 @@ model SmsMessageRecord {
|
||||
content String
|
||||
hasDrainageContent Boolean?
|
||||
drainageDetection Json?
|
||||
drainageGate Json?
|
||||
drainageReceiptPending Boolean @default(false)
|
||||
drainageDetectionVersion String?
|
||||
drainageEvaluatedAt DateTime?
|
||||
billingUnits Int @default(1)
|
||||
@@ -1880,6 +1890,7 @@ model CmppSubmitSession {
|
||||
}
|
||||
|
||||
model SmsSubmitRecord {
|
||||
drainageGate Json?
|
||||
id String @id @default(cuid())
|
||||
tenantId String?
|
||||
batchTaskId String?
|
||||
|
||||
Reference in New Issue
Block a user