|
@@ -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;
|
|
|
|
+}
|