diff --git a/prisma/migrations/20250219162847_add_client_enabled/migration.sql b/prisma/migrations/20250219162847_add_client_enabled/migration.sql new file mode 100644 index 0000000..80bf694 --- /dev/null +++ b/prisma/migrations/20250219162847_add_client_enabled/migration.sql @@ -0,0 +1,13 @@ +/* + Warnings: + + - Added the required column `updatedAt` to the `access_tokens` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "access_tokens" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, +ADD COLUMN "error" TEXT, +ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP; + +-- AlterTable +ALTER TABLE "clients" ADD COLUMN "enabled" BOOLEAN NOT NULL DEFAULT true; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index a8516a1..4456154 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -43,6 +43,7 @@ model Client { home String logo String description String? + enabled Boolean @default(true) clientId String @unique clientSecret String