hpv_school_map
Table: hpv_school_map
The hpv_school_map table maps vaccinators to schools for HPV vaccination campaigns.
It is used to assign responsibility and track which vaccinator is responsible for each school.
Columns
| Column Name | Data Type | Constraints | Description |
|---|---|---|---|
| id | int(11) | NOT NULL, AUTO_INCREMENT, PRIMARY KEY | Unique identifier for each mapping record |
| vaccinator_id | int(11) | NOT NULL | ID of the vaccinator (references user.mappedId) |
| school_id | int(11) | NOT NULL | ID of the school (references hpv_schools.school_id) |
Indexes
- PRIMARY - Primary key on
id - vaccinator_fk_idx - Index on
vaccinator_id - school_fk_idx - Index on
school_id
Foreign Key Relations
-
vaccinator_fk
vaccinator_id→user.mappedId- Ensures the vaccinator exists in the system
-
school_fk
school_id→hpv_schools.school_id- Ensures the school exists in the HPV schools table
Usage Notes
- Used to assign vaccinators to specific schools during HPV campaigns.
- Supports planning, reporting, and accountability of vaccination activities.
- Foreign keys enforce that only valid vaccinators and schools can be assigned.