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

/**
 * 问题
 */
@EntityModel('shuyou_problem')
export class ShuyouProblemEntity extends BaseEntity {

  @Index()
  @PrimaryColumn({ comment: '问题名称', length: 100 })
  name: string;

  @Column({ comment: '类型id' })
  type_id: number;

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

}

