| | |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column, Double } from 'typeorm'; |
| | | /** |
| | | * 设备参数表 |
| | | */ |
| | | * 设备参数 |
| | | */ |
| | | @EntityModel('t_base_deviceparams') |
| | | export class Basedeviceparams extends BaseEntity { |
| | | @Column({ comment:'配置人', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"配置人"}', type:'varchar', default:'null', length:50}) |
| | | configurator: string; |
| | | |
| | | @Column({ comment:'设备物理ID', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"物理序列号"}', type:'varchar', default:'null', length:50}) |
| | | device_id: string; |
| | | |
| | | @Column({ comment:'设备逻辑ID', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"设备逻辑ID"}', type:'varchar', default:'null', length:50}) |
| | | logic_id: string; |
| | | |
| | | @Column({ comment:'key', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"key"}', type:'varchar', default:'null', length:50}) |
| | | param_key: string; |
| | | |
| | | @Column({ comment:'参数类型', type:'int', default:null, width:0}) |
| | | @Column({ comment:'{name:"参数类型",dict:{"0":"系统参数","1":"水平角度","2":"垂直角度"}}', type:'int', default:null, width:0}) |
| | | param_type: number; |
| | | |
| | | @Column({ comment:'参数值', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"参数值"}', type:'varchar', default:'null', length:50}) |
| | | param_value: string; |
| | | |
| | | @Column({ comment:'备注', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"备注"}', type:'varchar', default:'null', length:50}) |
| | | remark: string; |
| | | |
| | | @Column({ comment:'状态,1-启用 0-停用', type:'int', default:1, width:0}) |
| | | @Column({ comment:'{name:"状态",dict:{"1":"启用", "0":"停用"}}', type:'int', default:1, width:0}) |
| | | status: number; |
| | | |
| | | } |