mirror of
https://github.com/yusufipk/dead-man-switch-2.0.git
synced 2026-09-11 17:36:06 +00:00
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:
+14
-13
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user