Browse Source

Fix no default value for judge_state's some columns

master
Menci 6 years ago
parent
commit
90f076d1bc
  1. 10
      models/judge_state.ts

10
models/judge_state.ts

@ -31,19 +31,19 @@ export default class JudgeState extends Model {
task_id: string; task_id: string;
@TypeORM.Index() @TypeORM.Index()
@TypeORM.Column({ nullable: true, type: "integer" }) @TypeORM.Column({ nullable: true, type: "integer", default: 0 })
score: number; score: number;
@TypeORM.Column({ nullable: true, type: "integer" }) @TypeORM.Column({ nullable: true, type: "integer", default: 0 })
total_time: number; total_time: number;
@TypeORM.Column({ nullable: true, type: "integer" }) @TypeORM.Column({ nullable: true, type: "integer", default: 0 })
code_length: number; code_length: number;
@TypeORM.Column({ nullable: true, type: "boolean" }) @TypeORM.Column({ nullable: true, type: "boolean", default: 0 })
pending: boolean; pending: boolean;
@TypeORM.Column({ nullable: true, type: "integer" }) @TypeORM.Column({ nullable: true, type: "integer", default: 0 })
max_memory: number; max_memory: number;
@TypeORM.Column({ nullable: true, type: "json" }) @TypeORM.Column({ nullable: true, type: "json" })

Loading…
Cancel
Save