param.ts 632 B

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