initial: bootstrap from BukidBountyApp base

This commit is contained in:
Jonathan Sykes
2026-06-06 18:43:00 +08:00
commit eb4a5731fb
5674 changed files with 160857 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
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.