Added support for to and from name
This commit is contained in:
+1
@@ -256,6 +256,7 @@ CREATE TABLE "workflow_step_executions" (
|
||||
CREATE TABLE "emails" (
|
||||
"id" TEXT NOT NULL,
|
||||
"contactId" TEXT NOT NULL,
|
||||
"toName" TEXT,
|
||||
"subject" TEXT NOT NULL,
|
||||
"body" TEXT NOT NULL,
|
||||
"from" TEXT NOT NULL,
|
||||
@@ -490,6 +490,7 @@ model Email {
|
||||
// Recipient
|
||||
contact Contact @relation(fields: [contactId], references: [id], onDelete: Cascade)
|
||||
contactId String
|
||||
toName String? // Recipient display name for To header
|
||||
|
||||
// Content (denormalized for history)
|
||||
subject String
|
||||
|
||||
Reference in New Issue
Block a user