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; }