master
2022-04-20 09f5baff0d14f593b52920b9b76d46fedfb753a8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 分组任务参数设置
        */
@EntityModel('t_task_periodic_setting')
export class Periodicsetting extends BaseEntity {
  @Column({ comment: '周期任务', type: 'varchar', default: '', length: 255 })
  crontab_rule: string;
 
  @Column({ comment: '任务结束时间', type: 'datetime' })
  end_time: Date;
 
  @Column({ comment: '设备分组ID', type: 'int', default: null, width: 0 })
  group_id: number;
 
  @Column({ comment: '设置人', type: 'varchar', default: '', length: 255 })
  operator: string;
 
  @Column({ comment: '备注', type: 'varchar', default: '', length: 255 })
  remark: string;
 
  @Column({ comment: '状态', type: 'tinyint', default: 1, width: 0 })
  status: number;
 
  @Column({ comment: '任务命令格式', type: 'varchar', default: '', length: 255 })
  task_command: string;
 
  @Column({ comment: '任务内容描述', type: 'varchar', default: '', length: 255 })
  task_content: string;
 
  @Column({ comment: '任务参数', type: 'varchar', default: '', length: 255 })
  task_params: string;
 
  @Column({ comment: '任务类型', type: 'int', default: null, width: 0 })
  task_type: number;
 
}