package com.crm.rely.backend.core.pojo.table;

import com.crm.rely.backend.core.pojo.BaseTable;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 抽奖次数记录 比如客户入金或者交易次数达标
 */
@Data
@Entity
@Table(name = "custom_activity_deposit_raffle_number_record")
public class CustomActivityDepositRaffleNumberRecordTable extends BaseTable {
    private Long customId;

    private Long cId;

    private Long agentId;

    private String name;


    /**
     * 国家
     */
    private String country;

    /**
     * 国家中文名称
     */
    private String countryName;

    /**
     * 国家英文名称
     */
    private String countryEnName;

    private Long raffleId;

    /**
     * 文案说明
     */
    private String content;

    private Integer raffleNumber;

    /**
     * 剩余次数
     */
    private Integer raffleResidueNumber;

    /**
     * 过期时间 如果达到时间 剩余次数大于0 则吧剩余次数清空
     */
    private Date expireTime;

    /**
     * 抽检过期次数
     */
    private Integer raffleExpireNumber;

    /**
     * 过期清空交易次数时间
     */
    private Date expireEmptyTime;
    /**
     * update Custom_activity_deposit_raffle_number_record set raffle_expire_number=raffle_residue_number,
     * expire_empty_time=now() where now()>expire_time and raffle_residue_number>0;
     */

    private String source;

    private Date sourceDate;
}
