Add workspace scoping to pipeline progress and expose findManyPipelineeProgress on graphql (#292)

Add workspace scoping to pipeline progress and expose findManyPipelineProgress on graphql
This commit is contained in:
Charles Bochet
2023-06-14 17:05:15 +02:00
committed by GitHub
parent 31f3950439
commit 5381e28253
104 changed files with 1393 additions and 98 deletions

View File

@ -113,20 +113,21 @@ model User {
/// @TypeGraphQL.omit(input: true)
model Workspace {
id String @id
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
domainName String @unique
displayName String
logo String?
workspaceMember WorkspaceMember[]
companies Company[]
people Person[]
commentThreads CommentThread[]
comments Comment[]
pipelines Pipeline[]
pipelineStages PipelineStage[]
id String @id
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
domainName String @unique
displayName String
logo String?
workspaceMember WorkspaceMember[]
companies Company[]
people Person[]
commentThreads CommentThread[]
comments Comment[]
pipelines Pipeline[]
pipelineStages PipelineStage[]
pipelineProgresses PipelineProgress[]
@@map("workspaces")
}
@ -310,8 +311,13 @@ model PipelineProgress {
pipelineStageId String
pipelineStage PipelineStage @relation(fields: [pipelineStageId], references: [id])
associableType PipelineProgressableType
associableId String
progressableType PipelineProgressableType
progressableId String
/// @TypeGraphQL.omit(input: true, output: true)
workspaceId String
/// @TypeGraphQL.omit(input: true, output: true)
workspace Workspace @relation(fields: [workspaceId], references: [id])
@@map("pipeline_progresses")
}