feat(sms,admin): implement full sms logging, tracking, filtering, and analytics system
This commit is contained in:
1 parent
6a476fab1a
commit
d8c6aa8d8e
5 files changed
+895
-49
No files matched your search
@@ -583,3 +583,23 @@ model Setting {
|
||||
@@index([category])
|
||||
@@map("settings")
|
||||
}
|
||||
|
||||
model SmsLog {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
receptor String @db.VarChar(20)
|
||||
type String @db.VarChar(50) // OTP, ORDER_CONFIRMATION, SHIPPING_TRACKING, B2B_NOTIFICATION, PET_CARE_REMINDER, TEST, GENERIC
|
||||
patternId Int? @map("pattern_id")
|
||||
args String[] @default([])
|
||||
messageText String? @map("message_text") @db.Text
|
||||
status String @db.VarChar(20) // SUCCESS, FAILED, DISABLED
|
||||
recId String? @map("rec_id") @db.VarChar(50)
|
||||
errorMessage String? @map("error_message") @db.Text
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz()
|
||||
|
||||
@@index([receptor])
|
||||
@@index([type])
|
||||
@@index([status])
|
||||
@@index([createdAt])
|
||||
@@map("sms_logs")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user