import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 任务依赖关系
 */
@Entity('project_task_dependency')
export class ProjectTaskDependencyEntity extends BaseEntity {
  @Index()
  @Column({ comment: '当前任务ID' })
  taskId: number;

  @Index()
  @Column({ comment: '前置任务ID' })
  dependsOnTaskId: number;

  @Column({ comment: '依赖类型 0:FS 1:SS 2:FF 3:SF', default: 0 })
  type: number;
}
