1.7 KiB
1.7 KiB
Plan: Cooperative Member and User Information Enhancement
🎯 Objective
Expand the user information and cooperative membership system to include all fields defined in the README.md specification. Ensure a premium UI is maintained for managing these fields. Add logic to automatically link emergency contact info to existing system users.
🏗️ Architecture & Requirements
- Database Expansion:
- Table
user_infos: Add fields for personal info, social accounts, address fragments, family/education, employment/livelihood, and government info. - Table
cooperative_members: Add membership-specific details (level, officer status, concurrent positions, etc.). - Foreign Keys: Ensure
emergency_contact_user_idis added touser_infosto link emergency contacts to existing users.
- Table
- Model Updates:
UserInfo.php: Add new fillables and anemergencyContactUserrelation.CooperativeMember.php: Add fillables for membership details.
- Logic Enhancements:
UserInfoController.php: Add logic to search for a user by name or phone during emergency contact updates to link them.
- UI Updates:
UserInfoEdit.vue: Redesign to handle the expanded field set with a cleaner, grouped layout (Personal, Social, Family/Education, etc.).- Add a toggle/search for linking emergency contacts to existing users.
🛠️ Proposed Tech Stack
- Backend: Laravel-style Hypervel (PHP 8.2+).
- Frontend: Vue 3 with Composition API.
- Styling: Bootstrap 5 with premium glassmorphism and
.rounded-pill.
🔄 Dependencies
- Existing
user_infosandcooperative_memberstables. UserPermissionsandUserActionsfor access control.