prescription ids into codes

This commit is contained in:
dpurbosakti
2025-11-06 13:34:49 +07:00
parent 264c316021
commit 7423621a30
5 changed files with 86 additions and 85 deletions

No files matched your search

@@ -0,0 +1,2 @@
-- Modify "Prescription" table
ALTER TABLE "public"."Prescription" DROP CONSTRAINT "fk_Prescription_Doctor", DROP COLUMN "Doctor_Id", ADD CONSTRAINT "fk_Prescription_Doctor" FOREIGN KEY ("Doctor_Code") REFERENCES "public"."Doctor" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;