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;

/**
 * @Description 比赛结果表
 * @Author y
 * @Date 2023/3/24 14:58
 */
@Data
@Entity
@Table(name = "follow_cpt_result")
public class FollowCptResultTable extends BaseTable {

    private Long customId;

    private Long cId;

    private Long login;
    /**
     * 比赛记录表
     */
    private Long cptId;
    /**
     * 排名
     */
    private Integer ranking;
    /**
     * 手数
     */
    private Float volume;
    /**
     * 累计净值得分
     */
    private Float cumulativeEquityScore;
    /**
     * 本金收益率得分
     */
    private Float principalScore;
    /**
     * 最大回撤率得分
     */
    private Float withdrawalScore;
    /**
     * 累计净利润得分
     */
    private Float cumulativeProfitScore;
    /**
     * 总得分
     */
    private Float totalScore;

    private Date date;

    public static FollowCptResultTable getInstance(){
        FollowCptResultTable table = new FollowCptResultTable();
        table.setRanking(0);
        table.setVolume(0F);
        table.setCumulativeEquityScore(0F);
        table.setPrincipalScore(0F);
        table.setWithdrawalScore(0F);
        table.setCumulativeProfitScore(0F);
        table.setTotalScore(0F);
        return table;
    }


}
