import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column, PrimaryColumn } from 'typeorm';

/**
 * 问题类型
 */
@EntityModel('shuyou_problem_type')
export class ShuyouProblemTypeEntity extends BaseEntity {

  @PrimaryColumn({ comment: '类型名称', length: 100 })
  name: string;

  @Column({ comment: '类型描述',nullable:true, length: 300 })
  description: string;

}

