feat(server): support ai plan (#6216)

This commit is contained in:
Brooooooklyn
2024-03-22 08:39:17 +00:00
parent aecc523663
commit 10af0ab48d
6 changed files with 158 additions and 51 deletions

View File

@@ -0,0 +1,11 @@
/*
Warnings:
- A unique constraint covering the columns `[user_id,plan]` on the table `user_subscriptions` will be added. If there are existing duplicate values, this will fail.
*/
-- DropIndex
DROP INDEX "user_subscriptions_user_id_key";
-- CreateIndex
CREATE UNIQUE INDEX "user_subscriptions_user_id_plan_key" ON "user_subscriptions"("user_id", "plan");