From 5d199c4c5c108446ce2000e7b1762bcf31642f69 Mon Sep 17 00:00:00 2001 From: YANG JIANKUAN Date: Fri, 3 Apr 2026 17:36:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=BF=81=E7=A7=BB=E8=A1=A5=E9=BD=90=20User=20API=20Ke?= =?UTF-8?q?y=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .../20260403170000_user_api_key_fields/migration.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 prisma/migrations/20260403170000_user_api_key_fields/migration.sql diff --git a/prisma/migrations/20260403170000_user_api_key_fields/migration.sql b/prisma/migrations/20260403170000_user_api_key_fields/migration.sql new file mode 100644 index 0000000..eeaf4b6 --- /dev/null +++ b/prisma/migrations/20260403170000_user_api_key_fields/migration.sql @@ -0,0 +1,7 @@ +-- AlterTable: Add API key fields to User +ALTER TABLE "User" ADD COLUMN "apiKeyHash" TEXT; +ALTER TABLE "User" ADD COLUMN "apiKeyEncrypted" TEXT; +ALTER TABLE "User" ADD COLUMN "apiKeyPrefix" TEXT; + +-- AlterTable: Remove apiKeyHash from Project (moved to User) +ALTER TABLE "Project" DROP COLUMN "apiKeyHash";