master
2022-03-16 f5e5d411b38f5819551f9acedef62dcf0832bc2c
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
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 静态模型数据
        */
@EntityModel('t_model_static') 
export class Modelstatic extends BaseEntity { 
@Column({ comment:'数据内容', type:'varchar', default:'', length:50})
data_content: string;
 
@Column({ comment:'数据文件路径,存放url', type:'varchar', default:'', length:50})
data_path: string;
 
@Column({ comment:'物理模型的逻辑ID', type:'varchar', default:'', length:50})
logic_id: string;
 
@Column({ comment:'', type:'varchar', default:'', length:50})
name: string;
 
@Column({ comment:'备注', type:'varchar', default:'', length:50})
remark: string;
 
@Column({ comment:'状态, 1-启用  0-禁用', type:'int', default:1, width:0})
status: number;
 
}