From 392cbf59ba0829f0665492227a00ff3e36b38f2c Mon Sep 17 00:00:00 2001 From: snowgitea Date: Wed, 1 Jul 2026 17:56:45 +0800 Subject: [PATCH] chore: src/modules/dict/entity/info.ts --- src/modules/dict/entity/info.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/modules/dict/entity/info.ts diff --git a/src/modules/dict/entity/info.ts b/src/modules/dict/entity/info.ts new file mode 100644 index 0000000..e6b7730 --- /dev/null +++ b/src/modules/dict/entity/info.ts @@ -0,0 +1,26 @@ +import { BaseEntity } from '../../base/entity/base'; +import { Column, Entity } from 'typeorm'; + +/** + * 字典信息 + */ +@Entity('dict_info') +export class DictInfoEntity extends BaseEntity { + @Column({ comment: '类型ID' }) + typeId: number; + + @Column({ comment: '名称' }) + name: string; + + @Column({ comment: '值', nullable: true }) + value: string; + + @Column({ comment: '排序', default: 0 }) + orderNum: number; + + @Column({ comment: '备注', nullable: true }) + remark: string; + + @Column({ comment: '父ID', default: null }) + parentId: number; +}