data_field.ts 801 B

1234567891011121314151617181920212223242526272829303132
  1. import { Entity, Column } from 'typeorm';
  2. import { BaseEntity } from '@cool-midway/core';
  3. @Entity('config_data_field')
  4. export class DataFieldEntity extends BaseEntity {
  5. @Column({ comment: '字段名称' })
  6. name: string;
  7. @Column({ comment: '字段描述' })
  8. description: string;
  9. @Column({
  10. comment: '字段类型 0:字符 1:日期 2:数值 3:空间数据',
  11. default: 0,
  12. })
  13. type: number;
  14. @Column({ comment: '字段长度', nullable: true })
  15. length: number;
  16. @Column({ comment: '字段单位', nullable: true })
  17. unit: string;
  18. @Column({ comment: '是否显示 0:否 1:是', default: 1 })
  19. isDisplay: number;
  20. @Column({ comment: '排序', nullable: true })
  21. sortCode: number;
  22. @Column({ comment: '表ID', type: 'int', nullable: true })
  23. tableId: number;
  24. }