/*
 * @Author: YKH
 * @Date: 2022-05-26 09:26:34
 * @LastEditTime: 2022-07-05 11:53:39
 * @Description: 
 * @FilePath: \cool-admin\cool-admin-midway-master\src\app\modules\shuyou\entity\game_complete_hand.ts
 */
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column, Index } from 'typeorm';

/**
 * 手动完成记录表
 */
@EntityModel('shuyou_game_complete_hand')
@Index(["task_id", "new_date"], { unique: true }) // 联合索引
export class ShuyouGameCompleteHandEntity extends BaseEntity {

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

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

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

  @Column({ comment: '新增个数', default: 0 })
  complete_new_hand: number;

  @Column({ comment: '留存个数', default: 0 })
  complete_lc_hand: number;

  @Column({ comment: '有无付费 0有付费 1无付费', default: 1, type: 'tinyint' })
  is_pay_hand: number;

  @Column({ comment: '付费个数', default: 0 })
  complete_pay_hand: number;

  @Column({ comment: '付费单价', type: 'decimal', default: 0.00, scale: 2 })
  price_hand: number;

  @Column({ comment: '付费流水', type: 'decimal', default: 0.00, scale: 2 })
  amount_hand: number;

  @Column({ comment: '支付方式 0QQ卡 1微信 2支付宝 3银行卡 4其他方式', default: 4, type: 'tinyint' })
  pay_mode_hand: number;

  @Column({ comment: '其他支付方式', nullable: true })
  other_pay_hand: string;

  @Column({ comment: '单价一致 0一致 1不一致', default: 0, type: 'tinyint' })
  is_same_hand: number;

  @Column({ comment: '相关账号', type: 'text', nullable: true })
  account_hand: string;

  @Column({ comment: '上传WT 0不上传 1上传', default: 0, type: 'tinyint' })
  is_wt_hand: number;

  @Column({ comment: '上传xjf 0不上传 1上传', default: 0, type: 'tinyint' })
  is_xjf_hand: number;

  card_list: [];

}
