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_sign")
public class FollowCptSignTable extends BaseTable {




    private Long customId;

    private Long cId;

    private Long login;
    /**
     * 比赛ID
     */
    private Long cptId;
    /**
     * 用户填写的昵称
     */
    private String nickname;
    /**
     * 收货人姓名
     */
    private String recipient;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 收获地址
     */
    private String address;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 比赛开始时净值
     */
    private Float raceStartEquity;
    /**
     * 交易平台
     */
    private String platform;
    /**
     * 1:报名成功
     * 2:参赛成功
     * 11:出金退赛
     * 12:未满足手数
     * 13:违规退赛（管理员操作）
     */
    private Integer status;

    private Float priceAmount;


    public static FollowCptSignTable init(Long cptId,Long login,Integer status,Float raceStartEquity){
        FollowCptSignTable table = new FollowCptSignTable();
        table.setCptId(cptId);
        table.setLogin(login);
        table.setStatus(status);
        table.setRaceStartEquity(raceStartEquity);
        return table;
    }


}
