➕ Adds mailer library

This commit is contained in:
Streamer272 committed 2026-07-26 10:55:59 +02:00
1 parent 7f9702fed7
commit f338a9d964
4 files changed
+43 -4

No files matched your search

@@ -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()
)