# 2. Downline & Team Building

User Type: **Affiliate**
Source: *Mi Digital Academy - Education CRM Features Document*

---

## 2. Downline & Team Building

### 2.1 Downline Overview
**What it does:** Shows the Affiliate their downline: the sub-affiliates they have recruited, organized by tier, with each sub-affiliate's status and performance. The Affiliate sees the size and health of their team. This gives the Affiliate a clear view of their downline structure.

**Sub-features:**
- List of downline sub-affiliates
- Sub-affiliates organized by tier
- Status per sub-affiliate
- Performance per sub-affiliate
- Downline size summary
- Downline available on web and mobile
- Downline event logging (viewed)
- Audit logging of the downline overview

**Affiliate User Journey:**
1. Affiliate opens the downline overview.
2. The list of downline sub-affiliates is shown.
3. The sub-affiliates are organized by tier.
4. The status per sub-affiliate is shown.
5. The performance per sub-affiliate is shown.
6. The downline size summary is shown.
7. Affiliate opens Profile → "Activity" and confirms the downline events are recorded.

**Rules & Edge Cases:**
- The downline is organized by tier.
- The status and performance are shown per sub-affiliate.
- Downline events (viewed) are logged with the account and the timestamp.
- The downline overview is audit-logged with the account and the timestamp.

### 2.2 Recruit Sub-Affiliates
**What it does:** Lets the Affiliate recruit new sub-affiliates into their downline: share a recruitment link, track who has signed up, and see their onboarding status. The recruited sub-affiliates become part of the Affiliate's Tier 2 downline. This helps the Affiliate grow their team.

**Sub-features:**
- Recruitment link for the Affiliate
- Share the recruitment link
- Track who has signed up
- Onboarding status per recruit
- Recruits added to the Tier 2 downline
- Recruitment available on web and mobile
- Recruitment event logging (shared, signed up)
- Audit logging of the recruit sub-affiliates

**Affiliate User Journey:**
1. Affiliate opens the recruitment tools.
2. The recruitment link is shown.
3. Affiliate shares the recruitment link.
4. The sign-ups are tracked.
5. The onboarding status per recruit is shown.
6. The recruits are added to the Tier 2 downline.
7. Affiliate opens Profile → "Activity" and confirms the recruitment events are recorded.

**Rules & Edge Cases:**
- The recruitment uses the Affiliate's recruitment link.
- The sign-ups are tracked.
- The recruits join the Tier 2 downline.
- Recruitment events (shared, signed up) are logged with the account and the timestamp.
- The recruit sub-affiliates is audit-logged with the account and the timestamp.

### 2.3 Team Performance Summary
**What it does:** Shows the Affiliate a performance summary of their team: the total downline sales, the Tier 2 commission generated, and the top-performing sub-affiliates. The Affiliate sees how their team is contributing to their earnings. This highlights the team's overall value.

**Sub-features:**
- Total downline sales
- Tier 2 commission generated
- Top-performing sub-affiliates
- Team performance by period
- Team performance visualization
- Summary available on web and mobile
- Summary event logging (viewed)
- Audit logging of the team performance summary

**Affiliate User Journey:**
1. Affiliate opens the team performance summary.
2. The total downline sales are shown.
3. The Tier 2 commission generated is shown.
4. The top-performing sub-affiliates are shown.
5. The team performance by period is shown.
6. The team performance visualization is displayed.
7. Affiliate opens Profile → "Activity" and confirms the summary events are recorded.

**Rules & Edge Cases:**
- The summary shows downline sales and Tier 2 commission.
- The top-performing sub-affiliates are shown.
- Summary events (viewed) are logged with the account and the timestamp.
- The team performance summary is audit-logged with the account and the timestamp.
