lrf 4 月之前
父节点
当前提交
034bc0e3d3
共有 2 个文件被更改,包括 25 次插入1 次删除
  1. 0 1
      src/controller/match/matchExt.controller.ts
  2. 25 0
      src/entity/match/matchLastList.entity.ts

+ 0 - 1
src/controller/match/matchExt.controller.ts

@@ -99,6 +99,5 @@ export class MatchExtController implements BaseController {
         console.error('matchExt - toFirstStep:发送短信发生错误')
       }
     }
-
   }
 }

+ 25 - 0
src/entity/match/matchLastList.entity.ts

@@ -0,0 +1,25 @@
+import { Entity, Column } from 'typeorm';
+import { BaseModel } from '../../frame/BaseModel';
+import dayjs = require('dayjs');
+//赛事
+@Entity('matchLastList', { comment: '双创赛事' })
+export class MatchLastList extends BaseModel {
+  @Column({ type: 'integer', nullable: true, comment: '赛事id' })
+  match_id: number;
+  @Column({ type: 'integer', nullable: true, comment: '用户id' })
+  user_id: number;
+  @Column({ type: 'integer', nullable: true, comment: '报名id' })
+  reg_id: number;
+  @Column({ type: 'integer', nullable: true, comment: '初赛分数' })
+  first_score: number;
+  @Column({ type: 'integer', nullable: true, comment: '是否确认参加决赛', default: '0' })
+  is_confirm: number
+  @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 } })
+  start_time: Date;
+  @Column({ type: 'integer', nullable: true, comment: '顺序' })
+  order_no: number;
+  @Column({ type: 'integer', nullable: true, comment: '总分数' })
+  score: number;
+  @Column({ type: 'jsonb', nullable: true, comment: '分数详情' })
+  score_details: object;
+}