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;


@Data
@Entity
@Table(name = "risk_copy_trade_array_record")
public class RiskCopyTradeArrayRecordTable extends BaseTable {

    @Column(name = "\"order\"")
    private Long order;

    private Long copyTradeArrayId;
    
    private Long fromLogin;

    private  Long toLogin;

    private String serial;

    private String symbol;

    private Integer cmd;

    private Integer volume;

    private Date openTime;

    private BigDecimal openPrice;

    private BigDecimal sl;

    private BigDecimal tp;

    private Date closeTime;

    private BigDecimal closePrice;

    private BigDecimal commission;

    private BigDecimal profit;

    private String comment;

    private BigDecimal taxes;

    private BigDecimal storage;

    private Long newOrder;

    private Integer openStatus;

    private Integer closeStatus;

}
