master
2022-02-14 97eb928060da31383c48d5275b2c4775933eeb66
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column } from 'typeorm';
 
/**
 * 商品
 */
@EntityModel('huaneng_fcs')
export class DemoHuanengEntity extends BaseEntity {
  @Column({ comment: '设备' })
  title: string;
 
  @Column({ comment: '姓名' })
  name: string;
 
  @Column({ comment: '序号', type: 'decimal', precision: 5, scale: 2 })
  price: number;
 
  @Column({ comment: '分类', type: 'tinyint' })
  type: number;
}