refactor: add config

This commit is contained in:
moonrailgun 2024-01-16 23:59:23 +08:00
parent 3881fd8423
commit 48605abe24

View File

@ -35,9 +35,11 @@ model User {
model Workspace { model Workspace {
id String @id @unique @default(cuid()) @db.VarChar(30) id String @id @unique @default(cuid()) @db.VarChar(30)
name String @db.VarChar(100) name String @db.VarChar(100)
dashboardOrder String[] dashboardOrder String[] // deprecated
/// [DashboardLayout] /// [DashboardLayout]
dashboardLayout Json? @db.Json dashboardLayout Json? @db.Json
/// [CommonPayload]
settings Json @default("{}")
createdAt DateTime @default(now()) @db.Timestamptz(6) createdAt DateTime @default(now()) @db.Timestamptz(6)
updatedAt DateTime @updatedAt @db.Timestamptz(6) updatedAt DateTime @updatedAt @db.Timestamptz(6)
@ -48,7 +50,7 @@ model Workspace {
monitorStatusPages MonitorStatusPage[] monitorStatusPages MonitorStatusPage[]
// for user currentWorkspace // for user currentWorkspace
selectedUsers User[] selectedUsers User[] // user list who select this workspace, not use in most of case
workspaceDailyUsage WorkspaceDailyUsage[] workspaceDailyUsage WorkspaceDailyUsage[]
} }