param.ts 590 B

12345678910111213141516171819202122232425262728
  1. import { BaseEntity } from '@cool-midway/core';
  2. import { Column, Index, Entity } from 'typeorm';
  3. /**
  4. * 参数配置
  5. */
  6. @Entity('base_sys_param')
  7. export class BaseSysParamEntity extends BaseEntity {
  8. @Index()
  9. @Column({ comment: '键位' })
  10. keyName: string;
  11. @Column({ comment: '名称' })
  12. name: string;
  13. @Column({ comment: '数据', type: 'text' })
  14. data: string;
  15. @Column({
  16. comment: '数据类型 0:字符串 1:数组 2:键值对',
  17. default: 0,
  18. type: 'smallint',
  19. })
  20. dataType: number;
  21. @Column({ comment: '备注', nullable: true })
  22. remark: string;
  23. }