import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column,Index } from 'typeorm';

/**
 * 每日游戏目标表
 */
@EntityModel('shuyou_game_target')
@Index(["task_id", "new_date"], { unique: true }) // 联合索引
export class ShuyouGameTargetEntity 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})
  target_new: number;

  @Column({ comment: '目标付费' , default: 0})
  target_pay: number;

  @Column({ comment: '目标活跃（所有留存目标的和+新增目标）' , default: 0})
  target_active: number;

  @Column({ comment: '新增下限' , default: 0})
  target_new_low: number;

  @Column({ comment: '付费下限' , default: 0})
  target_pay_low: number;

  @Column({ comment: '活跃下限' , default: 0})
  target_active_low: number;

  @Column({ comment: '目标次留', default: 0})
  lc_two: number;
  
  @Column({ comment: '目标3留', default: 0})
  lc_three: number;

  @Column({ comment: '目标4留', default: 0})
  lc_four: number;

  @Column({ comment: '目标5留', default: 0})
  lc_five: number;

  @Column({ comment: '目标6留', default: 0})
  lc_six: number;

  @Column({ comment: '目标7留', default: 0})
  lc_seven: number;

  @Column({ comment: '目标8留', default: 0})
  lc_eight: number;

  @Column({ comment: '目标9留', default: 0})
  lc_nine: number;

  @Column({ comment: '目标10留', default: 0})
  lc_ten: number;

  @Column({ comment: '目标11留', default: 0})
  lc_eleven: number;

  @Column({ comment: '目标12留', default: 0})
  lc_twelve: number;

  @Column({ comment: '目标13留', default: 0})
  lc_thirteen: number;

  @Column({ comment: '目标14留', default: 0})
  lc_fourteen: number;

  @Column({ comment: '目标15留', default: 0})
  lc_fifteen: number;

  @Column({ comment: '目标16留', default: 0})
  lc_sixteen: number;

  @Column({ comment: '目标17留', default: 0})
  lc_seventeen: number;

  @Column({ comment: '目标18留', default: 0})
  lc_eighteen: number;

  @Column({ comment: '目标19留', default: 0})
  lc_nineteen: number;

  @Column({ comment: '目标20留', default: 0})
  lc_twenty: number;

  @Column({ comment: '目标21留', default: 0})
  lc_twentyone: number;

  @Column({ comment: '目标22留', default: 0})
  lc_twentytwo: number;

  @Column({ comment: '目标23留', default: 0})
  lc_twentythree: number;

  @Column({ comment: '目标24留', default: 0})
  lc_twentyfour: number;

  @Column({ comment: '目标25留', default: 0})
  lc_twentyfive: number;

  @Column({ comment: '目标26留', default: 0})
  lc_twentysix: number;

  @Column({ comment: '目标27留', default: 0})
  lc_twentyseven: number;

  @Column({ comment: '目标28留', default: 0})
  lc_twentyeight: number;

  @Column({ comment: '目标29留', default: 0})
  lc_twentynine: number;

  @Column({ comment: '目标30留', default: 0})
  lc_thirty: number;

  

}
