master
2022-04-07 58389be5d3c1bbf4e47976f7ea09977be8bb84c5
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
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 组合模型
        */
@EntityModel('t_model_combination')
export class Modelcombination extends BaseEntity {
  @Column({ comment: '{name:"数据内容"}', type: 'varchar', default: '', length: 50 })
  data_content: string;
 
  @Column({ comment: '{name:"数据文件路径",tips:"url格式,域名可由服务端或者前端配置"', type: 'varchar', default: '', length: 255 })
  data_path: string;
 
  @Column({ comment: '{name:"任务类型",dict:{"1":"周期任务", "0":"即时任务"}}', type: 'int', default: null, width: 0 })
  is_periodic: number;
 
  @Column({ comment: '{name:"备注"}', type: 'varchar', default: '', length: 50 })
  remark: string;
 
  @Column({ comment: '{name:"状态",dict:{"1":"启用", "0":"停用"}}', type: 'int', default: 1, width: 0 })
  status: number;
 
  @Column({ comment: '任务ID,周期任务表或者即时任务表主键', type: 'int', default: null, width: 0 })
  task_id: number;
 
  @Column({ comment: '{name:"监测记录ID"}', type: 'int', default: null, width: 0 })
  task_monitor_id: number;
 
}