wangrong
2022-03-16 a45591fc22c088fe45fafb651b0c4575cc5c2f0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, Index } from 'typeorm';
 
/**
 * 任务日志
 */
@EntityModel('task_log')
export class TaskLogEntity extends BaseEntity {
  @Index()
  @Column({ comment: '任务ID', nullable: true, type: 'bigint' })
  taskId: number;
 
  @Column({ comment: '状态 0:失败 1:成功', default: 0, type: 'tinyint' })
  status: number;
 
  @Column({ comment: '详情描述', nullable: true, type: 'text' })
  detail: string;
}