From 48605abe245250dea1f6b073150caaff53e877cd Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 16 Jan 2024 23:59:23 +0800 Subject: [PATCH] refactor: add config --- prisma/schema.prisma | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 5ff5da2..20b1a8e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -35,9 +35,11 @@ model User { model Workspace { id String @id @unique @default(cuid()) @db.VarChar(30) name String @db.VarChar(100) - dashboardOrder String[] + dashboardOrder String[] // deprecated /// [DashboardLayout] dashboardLayout Json? @db.Json + /// [CommonPayload] + settings Json @default("{}") createdAt DateTime @default(now()) @db.Timestamptz(6) updatedAt DateTime @updatedAt @db.Timestamptz(6) @@ -48,7 +50,7 @@ model Workspace { monitorStatusPages MonitorStatusPage[] // for user currentWorkspace - selectedUsers User[] + selectedUsers User[] // user list who select this workspace, not use in most of case workspaceDailyUsage WorkspaceDailyUsage[] }