mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-07 20:18:12 +00:00
25 lines
534 B
TypeScript
25 lines
534 B
TypeScript
import { EntityModel } from '@midwayjs/orm';
|
|
import { BaseEntity } from '@cool-midway/core';
|
|
import { Column } from 'typeorm';
|
|
|
|
/**
|
|
* 字典信息
|
|
*/
|
|
@EntityModel('dict_info')
|
|
export class DictInfoEntity extends BaseEntity {
|
|
@Column({ comment: '类型ID' })
|
|
typeId: number;
|
|
|
|
@Column({ comment: '名称' })
|
|
name: string;
|
|
|
|
@Column({ comment: '排序', default: 0 })
|
|
orderNum: number;
|
|
|
|
@Column({ comment: '备注', nullable: true })
|
|
remark: string;
|
|
|
|
@Column({ comment: '父ID', default: null })
|
|
parentId: number;
|
|
}
|