Files
BarangaySystem/.agents/rules/farmer-management.md
2026-06-06 18:43:00 +08:00

24 lines
1.2 KiB
Markdown

---
trigger: always_on
---
# Agent Rule: Building the Farmer Management Module
When implementing the Farmer Management Module, adhere to the following planning specifications:
## 🏗️ Data Architecture
- **Primary Model**: `FarmerProfile` (Target File: `app/Models/Market/FarmerProfile.php`)
- **Key Fields**: `hashkey`, `user_id`, `organization_id`, `farm_name`, `farm_location`, `verification_status`.
- **Verification Statuses**: `UNVERIFIED`, `PENDING`, `VERIFIED`, `REJECTED`.
- **Reference**: Detailed plan at `ai-docs/modules/farmer_management_module.md`.
## 🛠️ Implementation Requirements
1. **Core Logic**: Extend the current user/member system. Implement logic in `app/Http/Controllers/Market/FarmerController.php`.
2. **Standard Fields**: Every record must have `created_by`, `updated_by`, `is_active`, and `hashkey`.
3. **Frontend**: Build management interfaces in `resources/js/Pages/Market/`.
- `FarmerProfileEdit.vue` for detailed registration.
- `VerificationDashboard.vue` for admin reviews.
## 📄 Documentation Integration
Ensure that any new enums or key fields are added to `ai-docs/dictionary.md` to maintain system-wide consistency.