Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

9 lines · 638 BRaw History
1-- The morning digest (phase 5c, mail/digest.ts): when each person who turned it on gets their next
2-- one. Their choices (hour, time zone, weekends) live in notification_prefs; this row is only the
3-- schedule, written whenever those settings are saved and moved on by the cron after each send.
4CREATE TABLE IF NOT EXISTS mail_digests (
5 account_id TEXT PRIMARY KEY REFERENCES accounts(id),
6 next_at TEXT NOT NULL, -- the next send, UTC ISO
7 last_sent_at TEXT -- the last one queued; the next digest covers what happened since
8);
9CREATE INDEX IF NOT EXISTS mail_digests_next ON mail_digests(next_at);