-- AlterTable ALTER TABLE "Asset" ADD COLUMN "underContract" BOOLEAN NOT NULL DEFAULT true; -- AlterTable ALTER TABLE "WorkOrder" ADD COLUMN "periodKey" TEXT; -- CreateIndex CREATE UNIQUE INDEX "WorkOrder_assetId_periodKey_key" ON "WorkOrder"("assetId", "periodKey");