feat: integrate analytics and fragment receipt improvements
This commit is contained in:
@@ -305,6 +305,23 @@ model DrainageField {
|
||||
commonReportFields CommonReportField[]
|
||||
}
|
||||
|
||||
model DrainageDetectionRule {
|
||||
id String @id @default(cuid())
|
||||
code String @unique
|
||||
name String
|
||||
category String
|
||||
pattern String
|
||||
flags String @default("giu")
|
||||
priority Int @default(100)
|
||||
status String @default("active")
|
||||
description String?
|
||||
version Int @default(1)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([status, priority])
|
||||
}
|
||||
|
||||
model TenantAccount {
|
||||
id String @id @default(cuid())
|
||||
tenantId String
|
||||
@@ -1502,6 +1519,10 @@ model SmsMessageRecord {
|
||||
carrier String?
|
||||
province String?
|
||||
content String
|
||||
hasDrainageContent Boolean?
|
||||
drainageDetection Json?
|
||||
drainageDetectionVersion String?
|
||||
drainageEvaluatedAt DateTime?
|
||||
billingUnits Int @default(1)
|
||||
unitPrice BigInt @default(0)
|
||||
amountCents BigInt @default(0)
|
||||
@@ -1511,6 +1532,7 @@ model SmsMessageRecord {
|
||||
gatewayMessageId String?
|
||||
cmppSubmitSequenceId String?
|
||||
cmppSubmitGroupMessageId String?
|
||||
cmppRegisteredDelivery Boolean?
|
||||
clientSrcId String?
|
||||
applicationExtension String?
|
||||
status String @default("queued")
|
||||
@@ -1523,6 +1545,7 @@ model SmsMessageRecord {
|
||||
submittedAt DateTime?
|
||||
deliveredAt DateTime?
|
||||
timeoutAt DateTime?
|
||||
timeoutReceiptQueuedAt DateTime?
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
tenant Tenant? @relation(fields: [tenantId], references: [id])
|
||||
@@ -1548,6 +1571,7 @@ model SmsMessageRecord {
|
||||
@@index([phoneNumber])
|
||||
@@index([gatewayMessageId])
|
||||
@@index([drainageInfoId, queuedAt])
|
||||
@@index([hasDrainageContent, queuedAt])
|
||||
}
|
||||
|
||||
model CmppSubmitSession {
|
||||
@@ -1754,14 +1778,15 @@ model CmppInboundLongMessage {
|
||||
}
|
||||
|
||||
model CmppInboundLongMessageSegment {
|
||||
id String @id @default(cuid())
|
||||
groupId String
|
||||
segmentIndex Int
|
||||
sequenceId String?
|
||||
content String
|
||||
contentHash String
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
id String @id @default(cuid())
|
||||
groupId String
|
||||
segmentIndex Int
|
||||
sequenceId String?
|
||||
registeredDelivery Boolean @default(true)
|
||||
content String
|
||||
contentHash String
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
group CmppInboundLongMessage @relation(fields: [groupId], references: [id], onDelete: Cascade)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user