import { IncrementIdEntity } from 'src/common/entities/increment-id.entity';
import { Column, Entity } from 'typeorm';

/**
 * 学员课件学习信息
 */
@Entity()
export class CourseNotes extends IncrementIdEntity {
  @Column({ name: 'explain', comment: '笔记简介', type: 'longtext' })
  explain: string;
  @Column({ name: 'content', comment: '笔记内容', type: 'longtext' })
  content: string;
  @Column({ type: 'longtext', name: 'title', comment: '笔记标题' })
  title: string;
  @Column({ name: 'view_count', comment: '笔记查看次数', default: 0 })
  viewCount: number;
}
