Files
twenty/server/src/api/@generated/pipeline-association/pipeline-association.model.ts
Charles Bochet 2395f791c8 Add Pipelines models in server (#182)
* Hide workspace and refresh token from schema

* Add pipe models and migrations

* Add seeds

* Update FE graphql schema
2023-06-02 11:20:21 +02:00

40 lines
1.1 KiB
TypeScript

import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { ID } from '@nestjs/graphql';
import { PipelineAssociableType } from '../pipeline/pipeline-associable-type.enum';
import { Pipeline } from '../pipeline/pipeline.model';
import { PipelineStage } from '../pipeline-stage/pipeline-stage.model';
@ObjectType()
export class PipelineAssociation {
@Field(() => ID, { nullable: false })
id!: string;
@Field(() => Date, { nullable: false })
createdAt!: Date;
@Field(() => Date, { nullable: false })
updatedAt!: Date;
@Field(() => Date, { nullable: true })
deletedAt!: Date | null;
@Field(() => String, { nullable: false })
pipelineId!: string;
@Field(() => String, { nullable: false })
pipelineStageId!: string;
@Field(() => PipelineAssociableType, { nullable: false })
associableType!: keyof typeof PipelineAssociableType;
@Field(() => String, { nullable: false })
associableId!: string;
@Field(() => Pipeline, { nullable: false })
pipeline?: Pipeline;
@Field(() => PipelineStage, { nullable: false })
pipelineStage?: PipelineStage;
}