Browse Source

Fix no default value for judge_state's some columns

pull/6/head
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;
@TypeORM.Index()
@TypeORM.Column({ nullable: true, type: "integer" })
@TypeORM.Column({ nullable: true, type: "integer", default: 0 })
score: number;
@TypeORM.Column({ nullable: true, type: "integer" })
@TypeORM.Column({ nullable: true, type: "integer", default: 0 })
total_time: number;
@TypeORM.Column({ nullable: true, type: "integer" })
@TypeORM.Column({ nullable: true, type: "integer", default: 0 })
code_length: number;
@TypeORM.Column({ nullable: true, type: "boolean" })
@TypeORM.Column({ nullable: true, type: "boolean", default: 0 })
pending: boolean;
@TypeORM.Column({ nullable: true, type: "integer" })
@TypeORM.Column({ nullable: true, type: "integer", default: 0 })
max_memory: number;
@TypeORM.Column({ nullable: true, type: "json" })

Loading…
Cancel
Save