Track open rate for new post notifications (user clicked the button in the link or not). No data about the user is collected during the process, it only uses an ID inserted by the issue delivery worker.
8 lines
266 B
SQL
8 lines
266 B
SQL
CREATE TABLE notifications_delivered (
|
|
email_id UUID PRIMARY KEY,
|
|
newsletter_issue_id UUID NOT NULL
|
|
REFERENCES newsletter_issues (newsletter_issue_id),
|
|
delivered_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
opened BOOLEAN NOT NULL DEFAULT FALSE
|
|
);
|