/*
  Warnings:

  - You are about to alter the column `cat_image` on the `Category` table. The data in that column could be lost. The data in that column will be cast from `VarChar(191)` to `Int`.

*/
-- AlterTable
ALTER TABLE `Category` MODIFY `cat_image` INTEGER NULL;

-- AddForeignKey
ALTER TABLE `Category` ADD CONSTRAINT `Category_cat_image_fkey` FOREIGN KEY (`cat_image`) REFERENCES `Media`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
