feat: initial MailOne worker (latest email per recipient, 24h retention)

This commit is contained in:
xiaolan
2026-02-26 09:32:57 +08:00
commit 93dfbc1e61
5 changed files with 182 additions and 0 deletions

9
schema.sql Normal file
View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS latest_emails (
recipient TEXT PRIMARY KEY,
id TEXT,
sender TEXT,
nexthop TEXT,
subject TEXT,
content TEXT,
received_at INTEGER NOT NULL
);