-- AlterTable to make password optional and add OAuth fields
ALTER TABLE "MailCredentials" 
  ALTER COLUMN "password" DROP NOT NULL,
  ADD COLUMN "useOAuth" BOOLEAN NOT NULL DEFAULT false,
  ADD COLUMN "refreshToken" TEXT,
  ADD COLUMN "accessToken" TEXT,
  ADD COLUMN "tokenExpiry" TIMESTAMP(3); 