-- Create "VaccineData" table
CREATE TABLE "public"."VaccineData" (
  "Id" bigserial NOT NULL,
  "CreatedAt" timestamptz NULL,
  "UpdatedAt" timestamptz NULL,
  "DeletedAt" timestamptz NULL,
  "Type" character varying(25) NULL,
  "Encounter_Id" bigint NULL,
  "BatchNumber" text NULL,
  "Dose" numeric NULL,
  "DoseOrder" bigint NULL,
  "InjectionLocation" text NULL,
  "GivenDate" timestamptz NULL,
  "ExpirationDate" timestamptz NULL,
  PRIMARY KEY ("Id"),
  CONSTRAINT "fk_Encounter_Vaccines" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
