package com.bizzan.bitrade.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "experience_gift_product_coin")
public class ExperienceGiftProductCoin {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "product_id", nullable = false)
    private Long productId;

    @Column(name = "coin_symbol", nullable = false)
    private String coinSymbol;

    /** 杠杆倍数 */
    @Column(name = "leverage", nullable = false)
    private Integer leverage = 2;

    @Column(name = "created_at", nullable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdAt;
}
