UMBRA/backend/alembic/versions/017_add_reminder_snoozed_until.py
Kyle Pope 5080e23256 Add real-time reminder alerts with snooze/dismiss
- Backend: GET /api/reminders/due endpoint, PATCH snooze endpoint,
  snoozed_until column + migration
- Frontend: useAlerts hook polls every 30s, fires Sonner toasts on
  non-dashboard pages (max 3 + summary), renders AlertBanner on
  dashboard below stats row
- Dashboard Active Reminders card filters out items shown in banner

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 23:15:56 +08:00

25 lines
459 B
Python

"""Add snoozed_until column to reminders
Revision ID: 017
Revises: 016
Create Date: 2026-02-23
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "017"
down_revision = "016"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column("reminders", sa.Column("snoozed_until", sa.DateTime(), nullable=True))
def downgrade() -> None:
op.drop_column("reminders", "snoozed_until")