feat: add enabled field to Client model

This commit is contained in:
wood chen 2025-02-20 00:31:23 +08:00
parent 77d00fd513
commit ecc02928ed
2 changed files with 14 additions and 0 deletions

View File

@ -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;

View File

@ -43,6 +43,7 @@ model Client {
home String
logo String
description String?
enabled Boolean @default(true)
clientId String @unique
clientSecret String