Skip to main content

ilr

Table: ilr

The ilr table stores information about ILR (Ice-Lined Refrigerator) units used for vaccine storage.
It tracks device details, status, and associations with centers, vaccinators, and monitoring activities.


Columns

Column NameData TypeConstraintsDescription
idbigint(20)NOT NULL, AUTO_INCREMENT, PRIMARY KEYUnique identifier for each ILR unit
createdDatedatetimeNULLTimestamp when the record was created
lastEditedDatedatetimeNULLTimestamp when the record was last edited
centerIdint(11)NULLID of the vaccination center associated with the ILR (references vaccinationcenter.mappedId)
ilrQRCodevarchar(255)NULLQR code of the ILR unit
manufacturerNamevarchar(255)NULLName of the ILR manufacturer
monitoringDevicevarchar(255)NULLDevice used for monitoring the ILR
powerSourcevarchar(255)NULLPower source type of the ILR
removalReasonvarchar(255)NULLReason for ILR removal or decommissioning
serialNumbervarchar(255)NULLSerial number of the ILR unit
statusvarchar(20)NULLCurrent status of the ILR (e.g., Active, Inactive)
vaccinatorIdint(11)NULLID of the vaccinator responsible for the ILR (references vaccinator.mappedId)
voidedtinyint(1)NOT NULLFlag indicating if the record is voided (1 = voided, 0 = active)
createdByUserIdint(11)NULLID of the user who created the record
lastEditedByUserIdint(11)NULLID of the user who last edited the record
vaccinationCenterIdint(11)NULLID of the vaccination center using the ILR (references vaccinationcenter.mappedId)
monitoring_idbigint(20)NULLID of the monitoring activity (references ilrmonitoring.id)

Indexes

  1. PRIMARY - Primary key on id
  2. FK197AF461150E5 - Index on centerId
  3. FK197AF7011764C - Index on vaccinatorId
  4. FK197AF7277622A - Index on vaccinationCenterId
  5. FK197AF5AC68504 - Index on monitoring_id

Foreign Key Relations

  1. FK197AF461150E5vaccinationcenter.mappedId

    • Associates the ILR with a vaccination center
  2. FK197AF7011764Cvaccinator.mappedId

    • Links the ILR to the responsible vaccinator
  3. FK197AF7277622Avaccinationcenter.mappedId

    • Another reference to the vaccination center using the ILR
  4. FK197AF5AC68504ilrmonitoring.id

    • Associates the ILR with a monitoring activity

Usage Notes

  • Tracks ILR details for vaccine storage and cold chain management.
  • voided field indicates whether the ILR record is active or decommissioned.
  • Foreign keys ensure ILR units are linked to valid vaccination centers, vaccinators, and monitoring activities.
  • Fields like ilrQRCode, serialNumber, and manufacturerName support identification and audit purposes.