Files
2025-11-06 12:17:49 +07:00

18 lines
646 B
SQL

-- Create "ChemoProtocol" table
CREATE TABLE "public"."ChemoProtocol" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Patient_Weight" numeric NULL,
"Patient_Height" numeric NULL,
"Diagnoses" text NULL,
"Duration" bigint NULL,
"DurationUnit_Code" character varying(10) NULL,
"StartDate" timestamptz NULL,
"EndDate" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_ChemoProtocol_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);