fix: paginate operational list pages

This commit is contained in:
hectorzhao
2026-07-28 23:20:13 +08:00
parent 87c5b1eccc
commit b8560372cc
40 changed files with 1208 additions and 422 deletions
+9
View File
@@ -359,6 +359,7 @@ model RechargeOrder {
tenant Tenant @relation(fields: [tenantId], references: [id])
@@index([tenantId, createdAt])
@@index([payMethod, createdAt])
}
model SmsBillingRecord {
@@ -441,6 +442,7 @@ model SmsApplication {
riskRules RiskRule[]
@@index([tenantId, status])
@@index([status, createdAt])
@@index([status, autoDisableAt])
}
@@ -666,6 +668,7 @@ model SmsSignature {
reportBatchItems ReportMaterialBatchItem[]
@@index([tenantId, auditStatus])
@@index([tenantId, updatedAt])
@@index([tenantId, reportStatus])
}
@@ -734,6 +737,7 @@ model SmsTemplate {
batchTasks SmsBatchTask[]
messageRecords SmsMessageRecord[]
@@index([tenantId, auditStatus, createdAt])
@@index([tenantId, auditStatus])
@@index([applicationId])
}
@@ -808,6 +812,7 @@ model SmsChannel {
gatewaySubmitDeadLetters GatewaySubmitDeadLetter[]
@@index([status])
@@index([status, createdAt])
}
model CmppConnectionState {
@@ -1043,6 +1048,7 @@ model ChannelSignatureReportTask {
exportItems ReportExportFileItem[]
@@index([tenantId, status])
@@index([status, createdAt])
@@index([signatureId, channelId])
@@index([signatureId, drainageItemId, channelId])
@@index([reportType, status])
@@ -1065,6 +1071,7 @@ model ChannelSignatureReportRecord {
@@index([taskId, createdAt])
@@index([channelId, createdAt])
@@index([createdAt])
}
model ReportExportFile {
@@ -1447,6 +1454,7 @@ model SmsMessageRecord {
@@unique([applicationId, clientMessageId])
@@index([tenantId, status, queuedAt])
@@index([queuedAt])
@@index([batchTaskId, status])
@@index([reviewTaskId, status])
@@index([phoneNumber])
@@ -1726,6 +1734,7 @@ model SmsUplinkMessage {
matchCandidates SmsUplinkMatchCandidate[]
@@index([tenantId, createdAt])
@@index([receivedAt])
@@index([applicationId, receivedAt])
@@index([channelId, receivedAt])
@@index([messageRecordId])