Skip to main content

vaccinatordailystock

Table: vaccinatordailystock

The vaccinatordailystock table tracks the daily stock of vaccines handled by each vaccinator, including opening, closing, administered, and wastage doses.

Columns

Column NameData TypeConstraintsDescription
vaccinatorDailyStockIdint(11)NOPrimary key identifying each daily stock record
administeredDosesint(11)YESNumber of doses administered
closedVialWastageDosesint(11)YESDoses wasted from closed vials
closingBalanceint(11)YESClosing stock balance
createdDatedatetimeYESRecord creation timestamp
editedDatedatetimeYESRecord edit timestamp
lastEditedDatedatetimeYESLast edit timestamp
mappedIdint(11)YESReference ID for the vaccinator or related entity
openVialWastageDosesint(11)YESDoses wasted from open vials
openingDosesint(11)YESOpening stock balance
recievedDosesint(11)YESNumber of doses received
stockAddeddatetimeYESTimestamp when stock was added
stockTypevarchar(255)YESType of stock (e.g., routine, campaign)
stockVaccineIdint(11)NOReference to the vaccine in stock
vaccinationCenterIdint(11)NOReference to the vaccination center
vaccinationEventTypevarchar(255)YESType of vaccination event
voidedtinyint(1)YESFlag indicating if record is voided
voidedDatedatetimeYESTimestamp when record was voided
voidedReasonvarchar(255)YESReason for voiding the record
createdByUserIdint(11)YESUser who created the record
lastEditedByUserIdint(11)YESUser who last edited the record

Indexes

  • dailystock_vaccinationCenterId_vaccinationcenter_mappedId_FK — Index on vaccinationCenterId
  • dailystock_lastEditedByUserId_user_mappedId_FK — Index on lastEditedByUserId
  • dailystock_createdByUserId_user_mappedId_FK — Index on createdByUserId

Foreign Key Relations

  • createdByUserId → user.mappedId
  • lastEditedByUserId → user.mappedId
  • vaccinationCenterId → vaccinationcenter.mappedId

Usage Notes

  • Tracks daily stock movement for each vaccinator.
  • Helps monitor vaccine usage, wastage, and inventory control at vaccination centers.
  • Essential for planning vaccine replenishment and auditing stock.