feat(pipelines): 添加流水线模块。
This commit is contained in:
22
src/pipelines/pipeline.entity.ts
Normal file
22
src/pipelines/pipeline.entity.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import { Column, Entity, ManyToOne } from 'typeorm';
|
||||
import { AppBaseEntity } from '../commons/entities/app-base-entity';
|
||||
import { Project } from '../projects/project.entity';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
@Entity()
|
||||
export class Pipeline extends AppBaseEntity {
|
||||
@ManyToOne(() => Project)
|
||||
project: Project;
|
||||
@Column()
|
||||
projectId: string;
|
||||
|
||||
@Column({ comment: 'eg: remotes/origin/master' })
|
||||
branch: string;
|
||||
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@Column({ type: 'jsonb' })
|
||||
workUnitMetadata: any;
|
||||
}
|
Reference in New Issue
Block a user