/* Warnings: - You are about to drop the column `model` on the `asset_items` table. All the data in the column will be lost. - Added the required column `model_id` to the `asset_items` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "asset_items" DROP COLUMN "model", ADD COLUMN "model_id" UUID NOT NULL; -- AddForeignKey ALTER TABLE "asset_items" ADD CONSTRAINT "asset_items_model_id_fkey" FOREIGN KEY ("model_id") REFERENCES "asset_models"("id") ON DELETE RESTRICT ON UPDATE CASCADE;