Reset and deletion of project

This commit is contained in:
Dries Augustyns
2025-12-03 21:30:54 +01:00
parent 382e97e5b2
commit a28be9adc9
4 changed files with 655 additions and 267 deletions
+8 -8
View File
@@ -78,7 +78,7 @@ model Project {
model Membership {
user User @relation(fields: [userId], references: [id])
userId String
project Project @relation(fields: [projectId], references: [id])
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
projectId String
// Details
@@ -158,7 +158,7 @@ model Template {
// Content
subject String
body String // HTML content with {{variable}} placeholders
body String // HTML content with {{variable}} placeholders
from String
fromName String?
replyTo String?
@@ -508,12 +508,12 @@ model Email {
toName String? // Recipient display name for To header
// Content (denormalized for history)
subject String
body String // Rendered HTML
from String
fromName String?
replyTo String?
headers Json? // Custom email headers
subject String
body String // Rendered HTML
from String
fromName String?
replyTo String?
headers Json? // Custom email headers
attachments Json? // Array of {filename: string, content: string (base64), contentType: string}
// AWS SES Message ID (for tracking webhooks)