-- Fix schema drift: the Opportunity.typeId column was added as NOT NULL but the
-- Prisma schema declares it as Int? (nullable). Drop the NOT NULL constraint so
-- the DB matches the schema and so that creating an opportunity without a type
-- (e.g. when CW uses no default type) no longer fails with P2011.
ALTER TABLE "Opportunity" ALTER COLUMN "typeId" DROP NOT NULL;
