mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 14:01:55 +08:00
feat: add enabled field to Client model
This commit is contained in:
parent
77d00fd513
commit
ecc02928ed
@ -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;
|
@ -43,6 +43,7 @@ model Client {
|
|||||||
home String
|
home String
|
||||||
logo String
|
logo String
|
||||||
description String?
|
description String?
|
||||||
|
enabled Boolean @default(true)
|
||||||
|
|
||||||
clientId String @unique
|
clientId String @unique
|
||||||
clientSecret String
|
clientSecret String
|
||||||
|
Loading…
x
Reference in New Issue
Block a user