Adds mailer library

This commit is contained in:
2026-07-26 10:55:59 +02:00
parent 7f9702fed7
commit f338a9d964
4 changed files with 43 additions and 4 deletions
@@ -8,3 +8,18 @@ CREATE TABLE IF NOT EXISTS actions
created_at TIMESTAMP NOT NULL DEFAULT now(),
updated_at TIMESTAMP NOT NULL DEFAULT now()
);
CREATE TABLE IF NOT EXISTS timed_emails
(
id UUID PRIMARY KEY NOT NULL UNIQUE DEFAULT gen_random_uuid(),
name TEXT NOT NULL,
recipient TEXT NOT NULL,
subject TEXT NOT NULL,
body TEXT NOT NULL,
interval INT NOT NULL,
heartbeat TIMESTAMP NOT NULL,
expires TIMESTAMP NOT NULL,
fired BOOLEAN NOT NULL DEFAULT FALSE,
created_at TIMESTAMP NOT NULL DEFAULT now(),
updated_at TIMESTAMP NOT NULL DEFAULT now()
)