-- AddForeignKey
ALTER TABLE "ref_siba_komoditas" ADD CONSTRAINT "ref_siba_komoditas_satuan_fkey" FOREIGN KEY ("satuan") REFERENCES "ref_siba_satuan"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "t_siba_komoditas" ADD CONSTRAINT "t_siba_komoditas_pasar_id_fkey" FOREIGN KEY ("pasar_id") REFERENCES "ref_siba_pasar"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "t_siba_komoditas" ADD CONSTRAINT "t_siba_komoditas_komoditas_id_fkey" FOREIGN KEY ("komoditas_id") REFERENCES "ref_siba_komoditas"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "t_siba_komoditas" ADD CONSTRAINT "t_siba_komoditas_users_id_fkey" FOREIGN KEY ("users_id") REFERENCES "ref_users"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
