import * as TypeORM from "typeorm"; import Model from "./common"; @TypeORM.Entity() export default class ClassifyToProblem extends Model { static cache = true; @TypeORM.PrimaryGeneratedColumn() id: number; @TypeORM.Index() @TypeORM.Column({ nullable: true, type: "integer" }) c_id: number; @TypeORM.Index() @TypeORM.Column({ nullable: true, type: "integer" }) p_id: number; }