What are Union Members?
Union Members (also called customers) are individuals who belong to a union and can receive loans. Each member has a detailed profile with personal information, contact details, documents, and loan history.Members must be assigned to a union before they can apply for loans. Only verified members are eligible for loan disbursement.
Union Member Data Model
From the Prisma schema:Profile Fields
Required Information
| Field | Type | Description |
|---|---|---|
firstName | String | Member’s first name |
lastName | String | Member’s last name |
unionId | String | Union membership (must exist) |
Contact Information
| Field | Type | Description |
|---|---|---|
phone | String | Mobile/contact number |
email | String | Email address (optional) |
address | String | Street address |
city | String | City or town |
state | String | State or region |
country | String | Country |
zipCode | String | Postal code |
Personal Details
| Field | Type | Description |
|---|---|---|
dateOfBirth | DateTime | Birthday |
gender | String | Male/Female/Other |
maritalStatus | String | Marital status |
profession | String | Occupation |
company | String | Employer name |
System Fields
| Field | Type | Description |
|---|---|---|
code | String | Unique member identifier (optional) |
isVerified | Boolean | Verification status (default: true) |
profileImage | String | Profile photo URL |
note | String | Administrative notes |
Viewing All Members
List Features
Search
Search by name, email, or phone number
Filter by Union
Select a specific union to view its members
Filter by Officer
View members assigned to a specific credit officer
Export
Download member list as CSV file
Role-Based Access
Administrator
Administrator
Can view and manage all members across all unions
Supervisor
Supervisor
Can view members in unions managed by their credit officers
Credit Officer
Credit Officer
Can only view and manage members in their assigned unions
Adding a New Member
Personal Information
Fill in required fields:
- First Name (required)
- Last Name (required)
- Phone (highly recommended)
- Email (optional)
- Date of Birth (optional)
- Gender (optional)
Union Assignment
Select Union (required)The member will be assigned to this union and its credit officer
API Endpoint
Member Code: If you don’t provide a code, the system generates a unique identifier automatically.
Viewing Member Details
Click any member in the list to see their complete profile:Profile Overview
- Full name and member code
- Profile photo (if uploaded)
- Contact information
- Verification status
Personal Details
- Date of birth and age
- Gender and marital status
- Profession and company
- Address details
Union Membership
- Current union
- Assigned credit officer
- Membership date
- Reassignment history
Loan History
- All loans (past and present)
- Total borrowed
- Repayment performance
- Current loan status
Documents Tab
View all uploaded documents:- ID cards
- Proof of address
- Business permits
- Other supporting documents
- Document type
- Upload date
- Verification status
- Issuing authority (if applicable)
- Expiry date (if applicable)
Editing Member Information
Member Verification
Before a member can receive loan disbursements, they should be verified.Verification Checklist
What to Verify
What to Verify
Before marking a member as verified, confirm:
- ✅ Identity documents are valid
- ✅ Contact information is correct
- ✅ Address can be confirmed
- ✅ Member understands loan terms
- ✅ Required documents are uploaded
API Endpoint
Reassigning Members to Different Unions
Members can be moved from one union to another:When reassigning a member, they move to the new union and its credit officer
What Happens During Reassignment?
- Member’s unionId is updated to the new union
- currentOfficerId changes to the new union’s credit officer
- Reassignment history is recorded in
UnionMemberReassignment - All existing loans remain unchanged
- New loans will be under the new union
Reassignment History Model
View Reassignment History
View Reassignment History
Each member’s profile includes a complete history of all union changes with dates, reasons, and who made the change
Document Management
Document Types
The system supports various document types configured by administrators:- National ID Card
- Driver’s License
- Passport
- Utility Bill (proof of address)
- Business Registration
- Bank Statement
- Custom types
Uploading Documents
Document Model
Verifying Documents
Document Verification Process
Document Verification Process
Supervisors or Admins can:
- Open the document
- Review its authenticity
- Toggle Verified status
- Add verification notes
- Set expiry reminders
Deleting Members
Members are soft deleted (marked with
deletedAt) to preserve historical records and audit trails.Search and Filters
Search Functionality
The search bar looks for matches in:- First name
- Last name
- Email address
- Phone number
- Member code
Filter Options
By Union
Select a union to see only its members
By Credit Officer
View members managed by a specific officer
By Verification Status
Filter verified vs. unverified members
Date Range
See members registered in a specific period
Advanced Filters
Gender Filter
Gender Filter
Filter members by Male, Female, or Other
Marital Status Filter
Marital Status Filter
Filter by Single, Married, Divorced, or Widowed
Profession Filter
Profession Filter
Search by occupation or business type
Export Options
Export All Members
Export Includes
- Member code and full name
- Contact information (phone, email, address)
- Union and officer assignments
- Verification status
- Registration date
- Personal details (DOB, gender, profession)
- Loan statistics
Best Practices
Data Entry
- Always enter first and last names
- Verify phone numbers are correct
- Use consistent formatting
- Add notes for special circumstances
Verification
- Verify members before first loan
- Update verification when documents expire
- Document what was verified in notes
- Re-verify periodically
Document Management
- Upload clear, readable documents
- Track expiry dates
- Verify authenticity
- Store securely
Privacy
- Protect personal information
- Don’t share login credentials
- Log out on shared computers
- Follow data protection policies
Troubleshooting
Cannot create member
Cannot create member
Check:
- First name and last name are filled
- Union is selected
- Email isn’t already in use (if provided)
- You have necessary permissions
Cannot find a member
Cannot find a member
Try:
- Clear search filters
- Check spelling in search
- Verify you have access to their union
- Check if member was deleted
Cannot delete member
Cannot delete member
Reason: Member has active loansSolution:
- Complete or cancel all loans
- Wait for loans to close
- Or mark member as inactive instead
Document upload fails
Document upload fails
Possible causes:
- File too large (max size limit)
- Unsupported file format
- Network connection issue
Reassignment not working
Reassignment not working
Check:
- You’re Admin or Supervisor
- Target union exists and is active
- Member has no pending transactions
- Reason is provided
API Reference
Endpoints
Summary
Union Member management provides:- ✅ Comprehensive member profiles
- ✅ Document upload and verification
- ✅ Union and officer assignments
- ✅ Reassignment with audit trail
- ✅ Search and filter capabilities
- ✅ Role-based access control
- ✅ Loan history tracking
- ✅ Export and reporting
Next Steps
- Create Loans for verified members
- Process Repayments for active loans
- Generate Reports on member performance
