/*

Add externalServiceId onto LinkedAccount.
Useful for tracking Plaid `account_id`, which is distinct from Plaid's `access_token` that we store
as `externalServiceToken`

*/
-- AlterTable
ALTER TABLE "LinkedAccount" ADD COLUMN     "externalServiceId" TEXT NOT NULL DEFAULT '';

-- CreateIndex
CREATE INDEX "LinkedAccount_externalServiceId_idx" ON "LinkedAccount"("externalServiceId");
