feat: add Twilio SMS/call integration with settings, templates, and conversation history
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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");
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE "twilio_settings" ADD COLUMN IF NOT EXISTS "greetingMessage" TEXT;
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE "twilio_settings" ADD COLUMN IF NOT EXISTS "templates" JSONB;
|
||||
Reference in New Issue
Block a user