The notifications table CHECK constraint did not include project_invite, project_invite_accepted, project_invite_rejected, or task_assigned. This caused 500 errors on invite_members and assign_users_to_task because create_notification violated ck_notifications_type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>