alter table "PharmacyProductDetail" drop column "PharmacyRetailStockId";

alter table "PharmacyProductDetail" add column "RetailPharmacyId" int references "RetailPharmacy"("RetailPharmacyId");

alter table "PharmacyProductRack" drop column "LocationId";

alter table "PharmacyProductRack" add column "RetailPharmacyId" int references "RetailPharmacy"("RetailPharmacyId");
 
alter table "PharmacyProductRack" add column "PharmacyDepartmentId" int references "PharmacyDepartment"("PharmacyDepartmentId");
