package com.platform2easy.genesis.domain.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
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 = "token")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class Token {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @EqualsAndHashCode.Include
    @Column(name = "token_id")
    private Long id;

    @Column(name = "token_external_id", nullable = false)
    private String externalId;

    @Column(name = "token_commodities_amount", nullable = false)
    private Integer commoditiesAmount;

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

    @Column(name = "token_commodities_value", nullable = false)
    private Integer commoditiesValue;

    @Column(name = "wallet_id", nullable = false)
    private Long walletId;

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

    @Column(name = "commodities_id", nullable = false)
    private Long commoditiesId;

    @Column(name = "cpr_id", nullable = false)
    private Long cprId;
}
