package com.platform2easy.genesis.domain.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(name = "tx_coin")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class TxCoin {

    @Id
    @EqualsAndHashCode.Include
    @Column(name = "tx_coin_id")
    private String id;

    @Column(name = "tx_coin_value", nullable = false)
    private String value;

    @Column(name = "tx_coin_flag", nullable = false)
    private String flag;

    @Column(name = "tx_coin_ts", nullable = false)
    private Integer ts;

    @Column(name = "tx_coin_from_address", nullable = false)
    private String fromAddress;

    @Column(name = "tx_coin_to_address", nullable = false)
    private String toAddress;

    @Column(name = "currency_id", nullable = false)
    private Long currencyId;

    @Column(name = "chain_id", nullable = false)
    private Long chainId;
}
