/*
 * @Author: YKH
 * @Date: 2022-04-25 10:18:24
 * @LastEditTime: 2022-04-25 11:42:55
 * @Description: 
 * @FilePath: \cool-admin\cool-admin-midway-master\src\app\modules\task\entity\flag.ts
 */

import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column, Index } from 'typeorm';

/**
 * flag
 */
@EntityModel('shuyou_target_flag')
export class ShuyouTargetFlagEntity extends BaseEntity {
  @Index()
  @Column({ comment: '标识名称' })
  name: string;

  @Column({ comment: '状态 0:失败 1:成功', default: 0, type: 'tinyint' })
  status: number;

  @Column({ comment: '详情描述', nullable: true, type: 'text' })
  detail: string;

  @Column({ comment: '标记时间', nullable: true })
  time: Date;
}
