conf.ts 378 B

1234567891011121314151617
  1. import { Column, Index } from 'typeorm';
  2. import { EntityModel } from '@midwayjs/orm';
  3. import { BaseEntity } from 'midwayjs-cool-core';
  4. /**
  5. * 系统配置
  6. */
  7. @EntityModel('base_sys_conf')
  8. export class BaseSysConfEntity extends BaseEntity {
  9. @Index({ unique: true })
  10. @Column({ comment: '配置键' })
  11. cKey: string;
  12. @Column({ comment: '配置值' })
  13. cValue: string;
  14. }