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

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Administrator
 */
@Data
@Entity
@Table(name = "follow_deal_subscribe")
public class FollowDealSubscribeTable extends BaseTable {

    private Long dealId;
    private Long dealCustomId;
    @Column(name = "[deal_c_id]")
    private Long dealCId;

    private String dealPlatform;
    private Long dealLogin;
    private Integer dealLoginType;

    private String dealNickname;
    private Integer distributionType;
    private Integer distributionRatio;
    private Integer settlementCycle;

    private Long followCustomId;

    @Column(name = "[follow_c_id]")
    private Long followCId;

    private String followPlatform;
    private Long followLogin;
    private Integer followLoginType;
    private Date startTime;
    private Date endTime;
    private Integer followType;
    private Integer volume;
    private Integer ratio;

    /**
     * 保护设置
     */
    private int protect;
    private Integer protectType;
    private BigDecimal protectAmount;
    private Integer protectRatio;
    /**
     * 是否已经清算完成
     * 0：未清算
     * 1：已清算
     */
    private Integer clear;
    /**
     * 订阅状态 1：订阅中，2：取消订阅
     */
    private int status;
    /**
     * 代理分润比例
     */
    private Integer agentDistributionRatio;

    private Float equity;

    private Integer forceClose;

    private Date calcStartTime;

    private Date calcEndTime;


    private Integer distributionValid;

    @Column(name = "[show]")
    private Integer show;

    private Integer endValid;
    private int orderStatus;
    private Date dealLastOpenTime;
    private Integer lastDealOrder;
}
