feat: create ViewField model (#961)
* feat: create ViewField model - Created ViewField prisma model - Added ViewField server resolvers for findMany/updateOne - Added getViewFields/updateViewField graphql queries Closes #849 * chore: update node version in .nvmrc files
This commit is contained in:
@ -169,6 +169,7 @@ model Workspace {
|
||||
pipelines Pipeline[]
|
||||
pipelineStages PipelineStage[]
|
||||
pipelineProgresses PipelineProgress[]
|
||||
viewFields ViewField[]
|
||||
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
deletedAt DateTime?
|
||||
@ -532,3 +533,22 @@ model Attachment {
|
||||
|
||||
@@map("attachments")
|
||||
}
|
||||
|
||||
model ViewField {
|
||||
/// @Validator.IsString()
|
||||
/// @Validator.IsOptional()
|
||||
id String @id @default(uuid())
|
||||
|
||||
fieldName String
|
||||
index Int
|
||||
isVisible Boolean
|
||||
objectName String
|
||||
sizeInPx Int
|
||||
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
workspace Workspace @relation(fields: [workspaceId], references: [id])
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
workspaceId String
|
||||
|
||||
@@map("viewFields")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user