/*
  Warnings:

  - Changed the type of `itemTypeId` on the `TransactionItem` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.

*/
-- AlterTable
ALTER TABLE "TransactionItem" DROP COLUMN "itemTypeId",
ADD COLUMN     "itemTypeId" UUID NOT NULL;

-- AddForeignKey
ALTER TABLE "TransactionItem" ADD CONSTRAINT "TransactionItem_itemTypeId_fkey" FOREIGN KEY ("itemTypeId") REFERENCES "item_type"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
