package com.honey.honey.model;

import jakarta.persistence.*;
import lombok.*;

import java.math.BigDecimal;
import java.time.Instant;

@Entity
@Table(name = "crypto_withdrawal_methods")
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CryptoWithdrawalMethod {

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

    @Column(name = "pid", nullable = false, unique = true)
    private Integer pid;

    @Column(name = "name", nullable = false, length = 50)
    private String name;

    @Column(name = "network", nullable = false, length = 100)
    private String network;

    @Column(name = "icon_id", nullable = false, length = 20)
    private String iconId;

    @Column(name = "min_withdrawal", nullable = false, precision = 10, scale = 2)
    private BigDecimal minWithdrawal;

    @Column(name = "updated_at", nullable = false)
    private Instant updatedAt;
}
