import { IncrementIdEntity } from 'src/common/entities/increment-id.entity';
import { Column, Entity } from 'typeorm';
@Entity()
export class TrainOperationLog extends IncrementIdEntity {
  @Column({ comment: '训练ID' })
  train: number;

  @Column({ comment: '步骤ID，查询时请过滤ID为0的条目（用于存储暂停记录）' })
  step: number;

  @Column({ comment: '操作设置ID,可以找到对应group和操作人员' })
  setting: number;
  @Column({
    comment: '状态ID 0等待执行 1成功  2错误',
    default: 0,
    nullable: true,
  })
  status: number;

  @Column({ comment: '用时', type: 'bigint', default: 0 })
  duration: number;

  @Column({ comment: '暂停时长', type: 'bigint', default: 0 })
  pause: number;

  // @Column({ comment: '开始时间', type: 'bigint', nullable: true, default: 0 })
  // start: number;
  // @Column({ comment: '完成时间', type: 'bigint', nullable: true, default: 0 })
  // finish: number;
}
