lrf 4 miesięcy temu
rodzic
commit
bf0737eeff
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      src/entity/match/matchRegistration.entity.ts

+ 4 - 0
src/entity/match/matchRegistration.entity.ts

@@ -40,4 +40,8 @@ export class MatchRegistration extends BaseModel {
   final_score: number;
   @Column({ type: 'jsonb', nullable: true, comment: '决赛分数详情' })
   final_score_details: object;
+  @Column({ type: 'timestamp without time zone', nullable: true, comment: '决赛开始时间', transformer: { from: value => (value ? dayjs(value).format('YYYY-MM-DD HH:mm:ss') : value), to: value => value } })
+  final_start_time: Date;
+
+  // 决赛名次根据分数生成
 }