Skip to content

Commit

Permalink
console: it is now possible to assign sibling workspace via featuresE…
Browse files Browse the repository at this point in the history
…nabled flag
  • Loading branch information
absorbb committed Jan 31, 2025
1 parent 428659e commit c3579ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions webapps/console/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ model Workspace {
slug String?
workspaceAccess WorkspaceAccess[]
workspaceOptions WorkspaceOptions[]
configurationObject ConfigurationObject[]
configurationObjectLink ConfigurationObjectLink[]
preferences UserPreferences[]
Expand All @@ -96,6 +97,18 @@ model Workspace {
@@index(updatedAt(sort: Desc))
}

//additional properties for workspace
model WorkspaceOptions {
id String @id @default(cuid())
createdAt DateTime @default(now()) /// @zod.custom(z.coerce.date())
updatedAt DateTime @default(now()) @updatedAt /// @zod.custom(z.coerce.date())
workspaceId String
workspace Workspace @relation(fields: [workspaceId], references: [id])
namespace String
value Json
@@index([workspaceId, namespace])
}

model WorkspaceAccess {
workspaceId String
Expand Down

0 comments on commit c3579ed

Please sign in to comment.