-- CreateEnum
CREATE TYPE "LoanType" AS ENUM ('Loan', 'Hold');

-- AlterTable
ALTER TABLE "Loan" ADD COLUMN     "type" "LoanType" NOT NULL DEFAULT 'Loan';

-- AlterTable
ALTER TABLE "Note" ADD COLUMN     "perkInstanceId" UUID;

-- AddForeignKey
ALTER TABLE "Note" ADD CONSTRAINT "Note_perkInstanceId_fkey" FOREIGN KEY ("perkInstanceId") REFERENCES "PerkInstance"("id") ON DELETE SET NULL ON UPDATE CASCADE;
