Skip to content

feat: Add government scheme finder#1683

Merged
omroy07 merged 3 commits intoomroy07:mainfrom
magic-peach:feature/gov-scheme-finder
Feb 28, 2026
Merged

feat: Add government scheme finder#1683
omroy07 merged 3 commits intoomroy07:mainfrom
magic-peach:feature/gov-scheme-finder

Conversation

@magic-peach
Copy link
Contributor

This PR implements a comprehensive government scheme finder system for farmers.

Features Implemented

Government Scheme Database

  • Added GovernmentScheme model with scheme details, eligibility criteria, benefits, and deadlines
  • Supports filtering by ministry, region, and date ranges
  • Search functionality by keyword across scheme name, description, and ministry

Eligibility Checker

  • Automatic eligibility scoring based on farm size, income, and location
  • Returns detailed eligibility notes and percentage score
  • Considers scheme-specific requirements like farm size limits, income caps, and regional restrictions

Application Assistance

  • Step-by-step application guidance
  • Document checklist with required documents
  • Timeline suggestions for optimal submission
  • Contact information and tips for successful applications

Application Management

  • Create and manage scheme applications
  • Track application status (draft, submitted, under_review, approved, rejected)
  • Store application data and submitted documents
  • History of all user applications

Deadline Reminders

  • Automatic reminder creation for upcoming deadlines
  • Multiple reminder intervals (30, 15, 7, 3, 1 days before deadline)
  • Upcoming deadlines endpoint for all schemes within specified time range

API Endpoints

  • GET /api/v1/government-schemes - List all schemes with optional filters
  • GET /api/v1/government-schemes/search - Search schemes by keyword
  • GET /api/v1/government-schemes/{id} - Get scheme details
  • POST /api/v1/government-schemes/{id}/eligibility - Check eligibility
  • GET /api/v1/government-schemes/{id}/assistance - Get application assistance
  • POST /api/v1/government-schemes/applications - Create application
  • POST /api/v1/government-schemes/applications/{id}/submit - Submit application
  • GET /api/v1/government-schemes/applications/user/{id} - Get user applications
  • GET /api/v1/government-schemes/deadlines - Get upcoming deadlines
  • POST /api/v1/government-schemes/{id}/reminders - Create deadline reminders

Files Added

  • backend/models/government_schemes.py - Database models
  • backend/services/government_scheme_service.py - Business logic service
  • backend/api/v1/government_schemes.py - API endpoints

Files Modified

  • backend/models/init.py - Added model exports
  • backend/api/v1/init.py - Registered new blueprint

Fixes #1673

…cation management

- Added GovernmentScheme, SchemeApplication, and SchemeReminder models
- Implemented eligibility checking based on farm size, income, and location
- Created application assistance with document checklist and tips
- Added deadline reminder system
- Implemented search and filter functionality
- Added API endpoints for schemes, applications, and reminders
@vercel
Copy link

vercel bot commented Feb 27, 2026

@magic-peach is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@omroy07
Copy link
Owner

omroy07 commented Feb 28, 2026

Conflict

@magic-peach
Copy link
Contributor Author

Done

@omroy07 omroy07 merged commit fd55825 into omroy07:main Feb 28, 2026
0 of 3 checks passed
@github-actions
Copy link

🎉 Congrats @magic-peach on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add government scheme finder

2 participants