Feat: add Vaccine Data migration
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
-- Create "VaccineData" table
|
||||
CREATE TABLE "public"."VaccineData" (
|
||||
"Id" bigserial NOT NULL,
|
||||
"CreatedAt" timestamptz NULL,
|
||||
"UpdatedAt" timestamptz NULL,
|
||||
"DeletedAt" timestamptz NULL,
|
||||
"Vaccine_type_Code" text NULL,
|
||||
"Encounter_Id" bigint NULL,
|
||||
"Vaccine_batch_number" bigint NULL,
|
||||
"Vaccine_dose" bigint NULL,
|
||||
"Dose_order" bigint NULL,
|
||||
"Injection_location" text NULL,
|
||||
"Vaccination_datetime" timestamptz NULL,
|
||||
"Vaccine_expiration_date" timestamptz NULL,
|
||||
PRIMARY KEY ("Id"),
|
||||
CONSTRAINT "fk_VaccineData_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
|
||||
);
|
||||
Reference in New Issue
Block a user