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

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

    @Column(name = "company_id", nullable = false)
    private Long companyId;

    @Column(name = "wallet_public_key", nullable = false)
    private String publicKey;

    @Column(name = "wallet_private_key", nullable = false)
    private String privateKey;

    @Column(name = "wallet_address", nullable = false)
    private String address;

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

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