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.
 
 
 
 

26 lines
727 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({ nullable: true, type: "integer" })
update_time: number;
@TypeORM.Column({ nullable: true, type: "integer" })
create_time: number;
}