Files
Obosky_Ronghua/serve/src/online-teaching/entities/live-classify.entity.ts
2023-10-17 09:15:30 +08:00

29 lines
574 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { IncrementIdEntity } from 'src/common/entities/increment-id.entity';
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
/**
* 在线教学课件
*/
@Entity()
export class LiveClassify {
@PrimaryGeneratedColumn('increment')
id: number;
@Column({ comment: '父级ID' })
pid: number;
@Column({ comment: '分类名称', type: 'text' })
name: string;
@Column({ comment: '层级' })
level: number;
@Column({
default: 0,
select: false,
name: 'del_flag',
comment: '是否删除0否/1是',
})
delFlag: number;
}