feat: Implement message check-in and status management, introduce flexible interval units, and add decryption routes for messages and attachments.

This commit is contained in:
Yusuf İpek
2025-12-28 14:15:16 +03:00
parent 1c91a1fe9d
commit 89968db712
17 changed files with 460 additions and 50 deletions
+14 -13
View File
@@ -45,19 +45,20 @@ model User {
}
model Message {
id String @id @default(cuid())
userId String
title String
content String? @db.Text
status String @default("DRAFT")
isEncrypted Boolean @default(false)
lastPing DateTime @default(now())
checkInterval Int @default(24)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
recipients Recipient[]
attachments Attachment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id String @id @default(cuid())
userId String
title String
content String? @db.Text
status String @default("DRAFT")
isEncrypted Boolean @default(false)
lastPing DateTime @default(now())
checkInterval Int @default(24)
intervalUnit String @default("HOURS")
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
recipients Recipient[]
attachments Attachment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Recipient {