wangrong
7 天以前 a9a1c709f56bb7c4361aa04b7cc647baaed74fcd
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 数据源定义信息
 */
@Entity('t_basicdata_iot')
export class BasicdataIotEntity extends BaseEntity {
  @Index({ unique: false })
  @Column({ comment: '终端编码' })
  iotCode: string;
 
  @Index()
  @Column({ comment: '终端名称' })
  iotName: string;
 
  @Index()
  @Column({ comment: '终端类型' })    // 电子秤 固定监控 车载监控 车载GPS 司机异常 监控手环
  iotTypeCode: string;
 
  
  @Column({ comment: '关联业务表' })
  businessType: string;
 
  @Column({ comment: '业务表ID' })
  businessId: string;
 
   @Column({ comment: '归属单位' })
  departmentId: number;
 
  // 部门名称
  departmentName: string;
 
  @Column({ comment: '终端Key' , nullable: true })
  iotKey: string;
 
  @Column({ comment: '终端Secret' , nullable: true })
  iotSecret: string;
 
  @Column({ comment: '终端上报渠道', dict: 'datachanel', default: "4G/5G" })
  iotChanel: string;
 
  @Column({ comment: '终端通信卡', nullable: true })
  iotPhone: string;
 
  @Column({ comment: '通信卡流量包' , nullable: true })
  iotPhonePackage: string;
 
  @Column({ comment: '安装位置描述', nullable: true })
  installLocation: string;
 
  @Column({ comment: '数据格式', nullable: true })
  dataFormat: string;
 
  @Column({ comment: '通信协议', nullable: true })
  protocol: string;
 
  @Column({ comment: '采集方向', nullable: true })
  dataDirection: string;
 
  @Column({ comment: '采集频率', nullable: true })
  frequency: string;
 
  @Column({ comment: '数据存储位置', nullable: true })
  storageLocation: string;
 
 
  @Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
  status: number;
 
  @Column({ comment: '备注', nullable: true })
  remark: string;
}