import * as TypeORM from "typeorm"; import Model from "./common"; import User from "./user"; import Article from "./article"; declare var syzoj: any; @TypeORM.Entity() export default class Reply extends Model { static cache = false; @TypeORM.PrimaryGeneratedColumn() id: number; @TypeORM.Column({ nullable: true, type: "mediumtext" }) content: string; @TypeORM.Index() @TypeORM.Column({ nullable: true, type: "integer" }) user_id: number; @TypeORM.Index() @TypeORM.Column({ nullable: true, type: "integer" }) comment_id: number; @TypeORM.Index() @TypeORM.Column({ nullable: true, type: "integer" }) article_id: number; @TypeORM.Column({ nullable: true, type: "integer" }) public_time: number; @TypeORM.Column({ nullable: true, type: "integer" }) update_time: number; };