initial: bootstrap from BukidBountyApp base
This commit is contained in:
23
.agents/rules/farmer-management.md
Normal file
23
.agents/rules/farmer-management.md
Normal 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.
|
||||
Reference in New Issue
Block a user