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

/**
 * 科目
 */
@Entity()
export class Subject extends IncrementIdEntity {
  @Column({ comment: '科目名称' })
  name: string;

  @Column({ comment: '科目说明', default: '' })
  comment: string;
  @Column({ comment: '科目分类' })
  classify: number;
  @Column({ comment: '训练类型' })
  train: number;
  @Column({ comment: '操作规程URL', type: 'longtext', nullable: true })
  pdf: string;
  @Column({
    comment: '科目状态',
    nullable: true,
    default: 0,
  })
  status: number;
}
