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_token")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class TxToken {

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

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

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

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

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

    @Column(name = "token_id", nullable = false)
    private Long tokenId;

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