Skip to main content

hpv_child

Table: hpv_child

The hpv_child table stores personal and demographic information of children enrolled in the HPV program.
It tracks identifiers, family details, and location information for vaccination and reporting purposes.


Columns

Column NameData TypeConstraintsDescription
mappedIdint(11)NOT NULL, PRIMARY KEYUnique internal identifier for each child
identifiervarchar(45)NOT NULL, UNIQUEProgram-specific unique identifier for the child
created_atdatetimeDEFAULT CURRENT_TIMESTAMPTimestamp when the record was created
modified_atdatetimeDEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMPTimestamp when the record was last modified
namevarchar(40)NULLName of the child
agetinyint(4)NULLAge of the child
father_namevarchar(40)NULLName of the child’s father
father_cnicvarchar(16)NULLCNIC (identity number) of the father
father_phonevarchar(14)NULLPhone number of the father
ucIdint(11)NULLUnion council ID or local administrative unit
addressvarchar(255)NULLResidential address of the child
townIdint(11)NULLTown ID for location reference
districtIdint(11)NULLDistrict ID for location reference

Indexes

  1. PRIMARY - Primary key on mappedId
  2. UNIQUE - mappedId_UNIQUE on mappedId
  3. UNIQUE - identifier_UNIQUE on identifier
  4. INDEX - idx_child_age on age

Foreign Key Relations

  • None defined

Usage Notes

  • Stores demographic and identification data for children in the HPV program.
  • identifier ensures program-level uniqueness, while mappedId is used internally.
  • Age and location fields (ucId, townId, districtId) support reporting and targeting.
  • Father’s contact information is used for communication and consent purposes.