1.2 KiB
1.2 KiB
trigger
| 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
- Core Logic: Extend the current user/member system. Implement logic in
app/Http/Controllers/Market/FarmerController.php. - Standard Fields: Every record must have
created_by,updated_by,is_active, andhashkey. - Frontend: Build management interfaces in
resources/js/Pages/Market/.FarmerProfileEdit.vuefor detailed registration.VerificationDashboard.vuefor admin reviews.
📄 Documentation Integration
Ensure that any new enums or key fields are added to ai-docs/dictionary.md to maintain system-wide consistency.