/*
 * @Author: YKH
 * @Date: 2022-06-27 17:31:14
 * @LastEditTime: 2022-06-27 18:20:55
 * @Description: 
 * @FilePath: \cool-admin\cool-admin-midway-master\src\app\modules\shuyou\entity\data_23.ts
 */
import { EntityModel } from '@midwayjs/orm';
import { Column, Index } from 'typeorm';
import { BaseEntity } from 'midwayjs-cool-core';
/**
 * 记录23点以后有付费的游戏
 */
@EntityModel('shuyou_data_23')
@Index(["task_id", "new_date"], { unique: true }) // 联合索引
export class ShuyouData23Entity extends BaseEntity {

  @Index()
  @Column({ comment: '任务id' })
  task_id: string;

  @Index()
  @Column({ comment: '任务名', length: 100 })
  task_name: string;

  @Column({ comment: '负责人id' })
  directorId: number;

  @Index()
  @Column({ type: 'date', comment: '目标日期' })
  new_date: Date;

  @Column({ comment: '未完成新增', default: 0 })
  incomplete_new: number;

  @Column({ comment: '未完成付费', default: 0 })
  incomplete_pay: number;

  @Column({ comment: '未完成活跃', default: 0 })
  incomplete_active: number;

  @Column({ comment: '创建时间' })
  createTime: Date;

  @Column({ comment: '更新时间' })
  updateTime: Date;

}
