CREATE TABLE "twilio_settings" (
    "id" SERIAL NOT NULL,
    "userId" INTEGER NOT NULL,
    "accountSid" TEXT NOT NULL,
    "authToken" TEXT NOT NULL,
    "phoneNumber" TEXT NOT NULL,
    CONSTRAINT "twilio_settings_pkey" PRIMARY KEY ("id")
);

ALTER TABLE "twilio_settings" ADD CONSTRAINT "twilio_settings_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;

CREATE UNIQUE INDEX "twilio_settings_userId_key" ON "twilio_settings"("userId");
