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.util.Date;

/**
 * Created by max on 2020/6/15.
 */
@Data
@Entity
@Table(name = "daily_volume")
public class DailyVolumeTable extends BaseTable {

    private Long ticket;

    private Date openTime;

    private Date closeTime;

    private Date ticketTime;

    private Date date;

    private Long login;

    private String group;

    private Long groupType;

    private Float groupCommission;

    private Long agentId;

    private Float volume;
    /**
     * 因为MT5会有部分平仓，导致commission/volume会出错
     */
    private Float initVolume;

    private Float profit;

    private Float commission;
    /**
     * 返佣类型，1：品种类型，2：百分比
     */
    private Integer type;

    private String symbol;

    private Long symbolType;

    private Float classicFx;

    private Float classicCfd;

    private Float classicIndex;

    private Float classicMetal;

    private Float vipFx;

    private Float vipCfd;

    private Float vipIndex;

    private Float vipMetal;

    private Float instantFx;

    private Float instantMetal;

    private Float instantIndex;

    private Float comPointOne;

    private Float comPointTwo;

    private Float comPointThree;

    private String platform;

    private Integer isTrade;

    private Float percent;

    private Float rebatePoint;

    private Float rebatePointValue;

    private Float rebateAmount;

    private Float rebateAmountValue;

    private Float commissionPoint;

    private Float commissionAmount;
    /**
     * 是否计算过佣金
     */
    private Integer calculated;

    private Long category;

    private Integer supplied;

    private Integer rebateValid;

    private Integer commissionValid;

    private Long fromAgentId;

    /**
     * pamm手续费
     */
    private Float pammCharge;

    private Float tempPammCharge;

    private Float rebateCut;

    private Float commissionCut;

    @Column(name = "`p_id`")
    private Long pId;

    private Long salesId;

    private Float standardFx;

    private Float standardCfd;

    private Float standardIndex;

    private Float standardMetal;

    private Float centFx;

    private Float centCfd;

    private Float centIndex;

    private Float centMetal;

    private String ibNo;

    private String salesNo;

}
