chore: src/modules/dict/entity/info.ts

This commit is contained in:
2026-07-01 17:56:45 +08:00
parent 5dcc9cc6bf
commit 392cbf59ba
+26
View File
@@ -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;
}