diff --git a/src/modules/base/entity/sys/conf.ts b/src/modules/base/entity/sys/conf.ts new file mode 100644 index 0000000..cda648f --- /dev/null +++ b/src/modules/base/entity/sys/conf.ts @@ -0,0 +1,15 @@ +import { Column, Index, Entity } from 'typeorm'; +import { BaseEntity } from '../base'; + +/** + * 系统配置 + */ +@Entity('base_sys_conf') +export class BaseSysConfEntity extends BaseEntity { + @Index({ unique: true }) + @Column({ comment: '配置键' }) + cKey: string; + + @Column({ comment: '配置值' }) + cValue: string; +}