| | |
| | | import { EntityModel } from '@midwayjs/orm'; |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column } from 'typeorm'; |
| | | import { Column, Double } from 'typeorm'; |
| | | /** |
| | | * 设备信息表 |
| | | */ |
| | | @EntityModel('t_base_deviceinfo') |
| | | export class BasedeviceinfoEntity extends BaseEntity { |
| | | @Column({ comment: '设备高度', type: 'varchar', default: '', length: 50 }) |
| | | altitude: string; |
| | | * 设备信息 |
| | | */ |
| | | @EntityModel('t_base_deviceinfo') |
| | | export class Basedeviceinfo extends BaseEntity { |
| | | @Column({ comment:'{name:"设备高度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | altitude: string; |
| | | |
| | | @Column({ comment: '账号', type: 'varchar', default: '', length: 50 }) |
| | | device_account: string; |
| | | @Column({ comment:'{name:"账号",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | device_account: string; |
| | | |
| | | @Column({ comment: '唯一索引,设备物理id,如厂编号、subscribeno等', type: 'varchar', default: '', length: 50 }) |
| | | device_id: string; |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment: '端口', type: 'varchar', default: '', length: 50 }) |
| | | device_port: string; |
| | | @Column({ comment:'{name:"端口",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | device_port: string; |
| | | |
| | | @Column({ comment: '密码', type: 'varchar', default: '', length: 50 }) |
| | | device_psw: string; |
| | | @Column({ comment:'{name:"密码",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | device_psw: string; |
| | | |
| | | @Column({ comment: '设备精度', type: 'varchar', default: '', length: 50 }) |
| | | dimension: string; |
| | | @Column({ comment:'{name:"设备精度",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | dimension: string; |
| | | |
| | | @Column({ comment: '', type: 'varchar', default: '', length: 50 }) |
| | | heading_angle: string; |
| | | @Column({ comment:'{name:"上倾角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | heading_angle: string; |
| | | |
| | | @Column({ comment: 'IP地址', type: 'varchar', default: '', length: 50 }) |
| | | ipaddres: string; |
| | | @Column({ comment:'{name:"IP地址",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | ipaddres: string; |
| | | |
| | | @Column({ comment: '纬度,精确到小数点后6位', type: 'varchar', default: '', length: 50 }) |
| | | latitude: string; |
| | | @Column({ comment:'{name:"纬度",format:0.000001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | latitude: string; |
| | | |
| | | @Column({ comment: '安装位置,**省**市**区**路**号**楼**方位', type: 'varchar', default: '', length: 50 }) |
| | | location: string; |
| | | @Column({ comment:'{name:"安装位置",format:"**省**市**区**路**号**楼**方位"}', type:'varchar', default:'null', length:50}) |
| | | location: string; |
| | | |
| | | @Column({ comment: '设备逻辑ID', type: 'varchar', default: '', length: 50 }) |
| | | logic_id: string; |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment: '经度,精确到小数点后6位', type: 'varchar', default: '', length: 50 }) |
| | | longitude: string; |
| | | @Column({ comment:'{name:"经度",format:0.00001,tips:"精确到小数点后6位"}', type:'varchar', default:'null', length:50}) |
| | | longitude: string; |
| | | |
| | | @Column({ comment: '设备名称', type: 'varchar', default: '', length: 50 }) |
| | | name: string; |
| | | @Column({ comment:'{name:"设备名称"}', type:'varchar', default:'null', length:50}) |
| | | name: string; |
| | | |
| | | @Column({ comment: '运维负责人', type: 'varchar', default: '', length: 50 }) |
| | | opertator: string; |
| | | @Column({ comment:'{name:"运维负责人",format:0.001,tips:""}', type:'varchar', default:'null', length:50}) |
| | | opertator: string; |
| | | |
| | | @Column({ comment: '俯仰角', type: 'varchar', default: '', length: 50 }) |
| | | petch_angle: string; |
| | | @Column({ comment:'{name:"俯仰角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | petch_angle: string; |
| | | |
| | | @Column({ comment: '航向角', type: 'varchar', default: '', length: 50 }) |
| | | precision: string; |
| | | @Column({ comment:'{name:"航向角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | precision: string; |
| | | |
| | | @Column({ comment: '备注', type: 'varchar', default: '', length: 50 }) |
| | | remark: string; |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment: '横滚角', type: 'varchar', default: '', length: 50 }) |
| | | roll_angle: string; |
| | | @Column({ comment:'{name:"横滚角",format:0.001,tips:"精确到小数点后3位"}', type:'varchar', default:'null', length:50}) |
| | | roll_angle: string; |
| | | |
| | | @Column({ comment: '状态,1-启用 0-停用', type: 'int', default: 1, width: 0 }) |
| | | status: number; |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | | status: number; |
| | | |
| | | } |