Files
sorsfonalak/crates/db/migrations/0037_gift_schedule.sql
T
fecoandClaude Opus 5.5 382bd31271 Christmas gifts and timed gift e-mails
- Gifts bought 15 Nov - 6 Jan get a Christmas card ("Boldog karácsonyt és
  csillagos 2027-et!", snowflakes) and a Christmas e-mail subject.
- The buyer can time the gift e-mail (e.g. Christmas morning); "Küldés most"
  replaces a waiting one, a refund takes it back.
- Admin: timed e-mails by hour (waiting / sent / failed), e-mail state per gift.
- /karacsony landing page; seasonal hints on /csomagok and /ajandek.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-24 13:46:35 +00:00

7 lines
285 B
SQL

-- A gift e-mailed later (e.g. on Christmas morning): when (NULL: at once),
-- and the e-mail queued for it, to show whether it went out (the outbox row
-- itself is cleaned up a week after sending).
ALTER TABLE gifts
ADD COLUMN send_at timestamptz,
ADD COLUMN email_id uuid;