feat:初始化 -融骅
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { IncrementIdEntity } from 'src/common/entities/increment-id.entity';
|
||||
import { Column, Entity } from 'typeorm';
|
||||
|
||||
/**
|
||||
* 考试分类表(树形结构)
|
||||
*/
|
||||
@Entity()
|
||||
export class ExamClassify extends IncrementIdEntity {
|
||||
@Column({ comment: '分类名' })
|
||||
name: string;
|
||||
|
||||
@Column({ comment: '父类id' })
|
||||
pid: number;
|
||||
|
||||
@Column({ comment: '层级' })
|
||||
level: number;
|
||||
}
|
||||
Reference in New Issue
Block a user