AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
-- CreateTable
CREATE TABLE "UserBriefing" (
"id" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"userId" TEXT NOT NULL,
"briefingDate" DATE NOT NULL,
"content" JSONB NOT NULL,
CONSTRAINT "UserBriefing_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "UserBriefing_userId_briefingDate_key" ON "UserBriefing"("userId", "briefingDate");
-- AddForeignKey
ALTER TABLE "UserBriefing" ADD CONSTRAINT "UserBriefing_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;