forked from lyhiving/chatapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from bytemate/feat/change-api
Add New API
- Loading branch information
Showing
6 changed files
with
124 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
prisma/migrations/20230115093723_add_session_support/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `user_id` on the `chatgpt_conversation` table. All the data in the column will be lost. | ||
- A unique constraint covering the columns `[tenant_id,session_id]` on the table `chatgpt_conversation` will be added. If there are existing duplicate values, this will fail. | ||
- Added the required column `session_id` to the `chatgpt_conversation` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- DropIndex | ||
DROP INDEX "chatgpt_conversation_user_id_tenant_id_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "chatgpt_conversation" DROP COLUMN "user_id", | ||
ADD COLUMN "session_id" TEXT NOT NULL; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "chatgpt_conversation_tenant_id_session_id_key" ON "chatgpt_conversation"("tenant_id", "session_id"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters