You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
855 B

import * as TypeORM from "typeorm";
import Model from "./common";
import JudgeState from "./judge_state";
import Article from "./article";
import UserPrivilege from "./user_privilege";
@TypeORM.Entity()
export default class Classify extends Model {
static cache = true;
@TypeORM.PrimaryGeneratedColumn()
id: number;
@TypeORM.Index({ unique: true })
@TypeORM.Column({ unique: true, nullable: true, type: "varchar", length: 20 })
name: string;
@TypeORM.Column({ nullable: true, type: "varchar", length: 100 })
intro: string;
@TypeORM.Column({ type: "integer" })
problem_num: number;
@TypeORM.Column({ type: "integer" })
order: number;
@TypeORM.Column({ nullable: true, type: "integer" })
update_time: number;
@TypeORM.Column({ nullable: true, type: "integer" })
create_time: number;
}