| | |
| | | import { BaseEntity } from '@cool-midway/core'; |
| | | import { Column, Double } from 'typeorm'; |
| | | /** |
| | | * 设备相关的附件 |
| | | */ |
| | | * 设备相关的附件 |
| | | */ |
| | | @EntityModel('t_base_device_attachment') |
| | | export class Deviceattachment extends BaseEntity { |
| | | @Column({ comment:'附件名称', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"附件名称"}', type:'varchar', default:'null', length:50}) |
| | | attach_name: string; |
| | | |
| | | @Column({ comment:'顺序编号', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"顺序编号"}', type:'varchar', default:'null', length:50}) |
| | | attach_sort: string; |
| | | |
| | | @Column({ comment:'附件类型, 1-使用说明 2-安装位置照片 ...', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"附件类型", dict:{"1":"使用说明","2":"安装位置照片"}}', type:'varchar', default:'null', length:50}) |
| | | attach_type: string; |
| | | |
| | | @Column({ comment:'附件访问路径', type:'varchar', default:'', length:50}) |
| | | @Column({ comment:'{name:"附件访问路径"}', type:'varchar', default:'null', length:50}) |
| | | attach_url: string; |
| | | |
| | | @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:"物理ID"}', 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:'备注', 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; |
| | | |
| | | } |