Residential Area Classification: State, District, Locality/Mukim, Kampung, Taman & Street (/mosque-admin/kariah-areas)
Complete explanation of how kariah members are classified by residential location (State, District, Locality/Mukim, Kampung, Taman Perumahan, Street/Jalan, and Other), database relationships, and practical examples.
Step-by-Step Instructions
1. Residential Area Classification & Database Relationships
Kariahku.com classifies member residences using the administrative State/District tables combined with the hierarchical kariah_areas and mosque_kariah_areas tables:
- Negeri / State (
states): Automatically inherited from the mosque’smosques.state_id. - Daerah / District (
districts): Automatically inherited from the mosque’smosques.district_id. - Town / Locality / Mukim (
area_type = 'locality'): Top-level local area or mukim grouping within the district. - Kampung (
area_type = 'kampung'): Traditional village area within the mosque kariah (can be nested under alocalityor placed at the root of the district). - Residential Taman (
area_type = 'taman'): Housing estate or residential development within the kariah. - Street / Jalan (
area_type = 'street'): Specific street classification node (can be nested under a parent Kampung or Taman viaparent_area_id, in addition to the member’s individualstreet_nameaddress field). - Other (
area_type = 'other'): Institutional quarters, apartments, or custom residential zones.
2. Creating a New Residential Area (/mosque-admin/kariah-areas)
- Open
/{lang}/mosque-admin/kariah-areas. - In the Add Area form:
- Enter the Area Name (e.g.,
Mukim Kajang,Kampung Sungai Ramal,Taman Harmoni Indah, orJalan Harmoni 3). - Select the Area Type (
locality,kampung,taman,street, orother). - Optionally select a Parent Area (
parent_area_id) to build a multi-level hierarchy (e.g., placing Jalan Harmoni 3 under Taman Harmoni Indah). - If linking an area name that already exists in the district, enter a Sharing Basis / Authorization (at least 10 characters).
- Enter the Area Name (e.g.,
- Click Add Area.
3. Linking Shared Boundary Areas & Deactivating Links
- When neighbouring mosques in the same district share a boundary area, use the Link Shared Area form, choose the existing district area, provide the Sharing Basis (≥ 10 characters), and submit.
- To stop new member registrations in an area while preserving historical member records, click Deactivate Link in the Area Hierarchy table.
4. Example: Identifying Members Across Kampung, Taman & Streets
For example, a mosque administrator at Masjid Al-Hidayah can configure:
- Locality (Mukim):
Mukim Damansara- Kampung:
Kampung Melayu Subang→ child Streets:Jalan Merbau 1,Jalan Merbau 2 - Residential Taman:
Taman Subang Murni→ child Streets:Jalan SM 3/1,Jalan SM 3/4
- Kampung:
In /mosque-admin/kariah-members, the administrator can view exact headcount breakdowns under Members by Area, filter the directory by any Kampung, Taman, or Street, or search by street name to generate targeted CSV exports.
Verified Screenshots & UI Reference
Input Fields & Options Reference
| Database Column | Table | Purpose & Constraint |
|---|---|---|
area_type | kariah_areas | ENUM('locality','kampung','taman','street','other'). |
parent_area_id | kariah_areas | Self-referencing FK within the same district & state; cycle-checked up to 25 levels. |
name_key | kariah_areas | Normalized unique key across (state_id, district_id, area_type, parent_id_key, name_key). |
sharing_basis | mosque_kariah_areas | Required (≥ 10 chars) when linking an area shared with another mosque in the same district. |
Expected Results
Common Errors & Troubleshooting
If you see "A sharing authorization basis is required (at least 10 characters)" when creating an area, an area with that normalized name already exists in the district—provide a 10+ character sharing note to link it.