Created feature_flags schema with:
- flags table: Global feature flag definitions
- user_flags table: User-level overrides
- evaluations table: Evaluation history for analytics
- evaluate_flag() function: PL/pgSQL evaluation with priorities
Features:
- Percentage-based rollout
- User override support
- Targeting rules (plan, role)
- Expiration support
- Initial flags for trading platform
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Created table to track user votes on course reviews:
- education.review_helpful_votes
- Constraint: one vote per user per review
- Indexes on user_id and review_id
This table supports the "mark as helpful" feature in course reviews.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Added portfolio schema to 01-schemas.sql
- Created enums: risk_profile, goal_status, rebalance_action, allocation_status
- Created tables: portfolios, portfolio_allocations, portfolio_goals
- Created tables: rebalance_history, portfolio_snapshots
- Added triggers for updated_at and goal progress calculations
- Added indexes for performance
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add auth.notifications table for storing user notifications
- Add auth.user_push_tokens table for FCM/APNs tokens
- Add investment.distribution_history for daily distribution records
- Add investment.distribution_runs for job execution logs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
DDL schemas for Trading Platform:
- User management
- Authentication
- Payments
- Education
- ML predictions
- Trading data
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>